-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathBaseRunner.java
More file actions
44 lines (31 loc) · 958 Bytes
/
BaseRunner.java
File metadata and controls
44 lines (31 loc) · 958 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package cucumber_runners;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
import org.junit.BeforeClass;
import org.junit.runner.RunWith;
import com.qa.tlv.utilities.reports.AllureReportConfigurationSetup;
/**
* Runner to execute casino tests
*
* command line usage:
*
* mvn clean -q -U install -Dtest=BasetRunner -DfailIfNoTests=false
* -Denv=ENVIRONMENT -Ddevice=DEVICE -Dcucumber.options= "--tags @TAG_NAME"
*
* @author Pavel Yampolsky
*
*/
@CucumberOptions(plugin = { "pretty",
"html:target/cucumber/cucumber-html-report",
"json:target/cucumber/cucumber-json-report.json"
}, dryRun = false, monochrome = true,
tags = "@Q",
features = "src/test/resources/features", glue = { "stepdefs" })
@RunWith(Cucumber.class)
public class BaseRunner {
@BeforeClass()
public static void runTomcat() throws Exception {
// prepare reports folder
AllureReportConfigurationSetup.prepareAllureResultsFolder();
}
}