@@ -2,17 +2,17 @@ import org.junit.Assert
2
2
3
3
import static org.hamcrest.Matchers.equalToIgnoringWhiteSpace
4
4
5
- File buildDirectory = new File (basedir, " target" );
5
+ File buildDirectory = new File (basedir, " target" )
6
6
7
- File suite01 = new File (basedir, " target/generated-test-sources/cucumber/Parallel01FooFeature1Counter001IT .java" );
8
- File suite02 = new File (basedir, " target/generated-test-sources/cucumber/Parallel00FooFeature2Counter002IT .java" );
9
- File suite03 = new File (basedir, " target/generated-test-sources/cucumber/Parallel01FooFeature3Counter003IT .java" );
10
- File suite04 = new File (basedir, " target/generated-test-sources/cucumber/Parallel00FooFeature4Counter004IT.java" );
7
+ File suite01 = new File (basedir, " target/generated-test-sources/cucumber/Parallel00FooFeature1Counter001IT .java" )
8
+ File suite02 = new File (basedir, " target/generated-test-sources/cucumber/Parallel01FooFeature2Counter002IT .java" )
9
+ File suite03 = new File (basedir, " target/generated-test-sources/cucumber/Parallel02FooFeature3Counter003IT .java" )
10
+ File suite04 = new File (basedir, " target/generated-test-sources/cucumber/Parallel00FooFeature4Counter004IT.java" )
11
11
12
- File feature1 = new File (basedir, " /src/test/resources/features/feature1.feature" );
13
- File feature2 = new File (basedir, " /src/test/resources/features/feature2.feature" );
14
- File feature3 = new File (basedir, " /src/test/resources/features/feature3.feature" );
15
- File feature4 = new File (basedir, " /src/test/resources/features/feature4.feature" );
12
+ File feature1 = new File (basedir, " /src/test/resources/features/feature1.feature" )
13
+ File feature2 = new File (basedir, " /src/test/resources/features/feature2.feature" )
14
+ File feature3 = new File (basedir, " /src/test/resources/features/feature3.feature" )
15
+ File feature4 = new File (basedir, " /src/test/resources/features/feature4.feature" )
16
16
17
17
assert suite01. isFile()
18
18
assert suite02. isFile()
@@ -33,7 +33,7 @@ import cucumber.api.junit.Cucumber;
33
33
monochrome = false,
34
34
tags = {},
35
35
glue = {"foo", "bar"})
36
- public class Parallel01FooFeature1Counter001IT {
36
+ public class Parallel00FooFeature1Counter001IT {
37
37
}"""
38
38
39
39
String expected02 =
@@ -50,7 +50,7 @@ import cucumber.api.junit.Cucumber;
50
50
monochrome = false,
51
51
tags = {},
52
52
glue = {"foo", "bar"})
53
- public class Parallel00FooFeature2Counter002IT {
53
+ public class Parallel01FooFeature2Counter002IT {
54
54
}"""
55
55
56
56
String expected03 =
@@ -62,12 +62,12 @@ import cucumber.api.junit.Cucumber;
62
62
@RunWith(Cucumber.class)
63
63
@CucumberOptions(
64
64
strict = true,
65
- features = {"${ feature1 .absolutePath} "},
66
- plugin = {"json:${ buildDirectory.absolutePath} /cucumber-parallel/1 .json"},
65
+ features = {"${ feature3 .absolutePath} "},
66
+ plugin = {"json:${ buildDirectory.absolutePath} /cucumber-parallel/3 .json"},
67
67
monochrome = false,
68
68
tags = {},
69
69
glue = {"foo", "bar"})
70
- public class Parallel01FooFeature3Counter003IT {
70
+ public class Parallel02FooFeature3Counter003IT {
71
71
}"""
72
72
73
73
String expected04 =
@@ -79,8 +79,8 @@ import cucumber.api.junit.Cucumber;
79
79
@RunWith(Cucumber.class)
80
80
@CucumberOptions(
81
81
strict = true,
82
- features = {"${ feature2 .absolutePath} "},
83
- plugin = {"json:${ buildDirectory.absolutePath} /cucumber-parallel/2 .json"},
82
+ features = {"${ feature4 .absolutePath} "},
83
+ plugin = {"json:${ buildDirectory.absolutePath} /cucumber-parallel/4 .json"},
84
84
monochrome = false,
85
85
tags = {},
86
86
glue = {"foo", "bar"})
0 commit comments