Skip to content

Commit 1a69e08

Browse files
committed
Drop example to reduce verbosity and avoid language issues
1 parent 5165064 commit 1a69e08

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

cucumber-core/src/test/java/io/cucumber/core/plugin/TeamCityPluginTest.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ void should_handle_scenario_outline() {
7272
"##teamcity[testSuiteStarted timestamp = '1970-01-01T12:00:00.000+0000' locationHint = '" + location
7373
+ "path/test.feature:5' name = 'examples name']\n" +
7474
"##teamcity[testSuiteStarted timestamp = '1970-01-01T12:00:00.000+0000' locationHint = '" + location
75-
+ "path/test.feature:7' name = 'Example #1.1 - name 1']\n" +
75+
+ "path/test.feature:7' name = '#1.1 - name 1']\n" +
7676
"##teamcity[customProgressStatus type = 'testStarted' timestamp = '1970-01-01T12:00:00.000+0000']\n" +
7777
"##teamcity[testStarted timestamp = '1970-01-01T12:00:00.000+0000' locationHint = '" + location
7878
+ "path/test.feature:3' captureStandardOutput = 'true' name = 'first step']\n" +
@@ -83,10 +83,10 @@ void should_handle_scenario_outline() {
8383
"##teamcity[testFinished timestamp = '1970-01-01T12:00:00.000+0000' duration = '0' name = 'second step']\n"
8484
+
8585
"##teamcity[customProgressStatus type = 'testFinished' timestamp = '1970-01-01T12:00:00.000+0000']\n" +
86-
"##teamcity[testSuiteFinished timestamp = '1970-01-01T12:00:00.000+0000' name = 'Example #1.1 - name 1']\n"
86+
"##teamcity[testSuiteFinished timestamp = '1970-01-01T12:00:00.000+0000' name = '#1.1 - name 1']\n"
8787
+
8888
"##teamcity[testSuiteStarted timestamp = '1970-01-01T12:00:00.000+0000' locationHint = '" + location
89-
+ "path/test.feature:8' name = 'Example #1.2 - name 2']\n" +
89+
+ "path/test.feature:8' name = '#1.2 - name 2']\n" +
9090
"##teamcity[customProgressStatus type = 'testStarted' timestamp = '1970-01-01T12:00:00.000+0000']\n" +
9191
"##teamcity[testStarted timestamp = '1970-01-01T12:00:00.000+0000' locationHint = '" + location
9292
+ "path/test.feature:3' captureStandardOutput = 'true' name = 'first step']\n" +
@@ -97,7 +97,7 @@ void should_handle_scenario_outline() {
9797
"##teamcity[testFinished timestamp = '1970-01-01T12:00:00.000+0000' duration = '0' name = 'third step']\n"
9898
+
9999
"##teamcity[customProgressStatus type = 'testFinished' timestamp = '1970-01-01T12:00:00.000+0000']\n" +
100-
"##teamcity[testSuiteFinished timestamp = '1970-01-01T12:00:00.000+0000' name = 'Example #1.2 - name 2']\n"
100+
"##teamcity[testSuiteFinished timestamp = '1970-01-01T12:00:00.000+0000' name = '#1.2 - name 2']\n"
101101
+
102102
"##teamcity[customProgressStatus testsCategory = '' count = '0' timestamp = '1970-01-01T12:00:00.000+0000']\n"
103103
+

cucumber-gherkin-messages/src/main/java/io/cucumber/core/gherkin/messages/GherkinMessagesExample.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public Optional<String> getName() {
4343
.map(pickleName::equals)
4444
.orElse(true);
4545

46-
StringBuilder builder = new StringBuilder("Example #" + examplesIndex + "." + rowIndex);
46+
StringBuilder builder = new StringBuilder("#" + examplesIndex + "." + rowIndex);
4747
if (parameterized) {
4848
builder.append(" - ").append(pickleName);
4949
}

cucumber-junit-platform-engine/src/test/java/io/cucumber/junit/platform/engine/FeatureResolverTest.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ private TestDescriptor getOutline() {
133133
@Test
134134
void example() {
135135
TestDescriptor example = getExample();
136-
assertEquals("Example #1.1", example.getDisplayName());
136+
assertEquals("#1.1", example.getDisplayName());
137137
assertEquals(
138138
asSet(create("FeatureTag"), create("Example1Tag"), create("ScenarioOutlineTag")),
139139
example.getTags());
@@ -157,7 +157,7 @@ void longNames() {
157157
JUNIT_PLATFORM_NAMING_STRATEGY_PROPERTY_NAME, "long");
158158

159159
TestDescriptor example = getExample();
160-
assertEquals("A feature with scenario outlines - A scenario outline - With some text - Example #1.1",
160+
assertEquals("A feature with scenario outlines - A scenario outline - With some text - #1.1",
161161
example.getDisplayName());
162162
}
163163

@@ -178,7 +178,7 @@ void shortNamesWithExampleNumbers() {
178178
JUNIT_PLATFORM_SHORT_NAMING_STRATEGY_EXAMPLE_NAME_PROPERTY_NAME, "number");
179179

180180
TestDescriptor example = getExample();
181-
assertEquals("Example #1.1", example.getDisplayName());
181+
assertEquals("#1.1", example.getDisplayName());
182182
}
183183

184184
@Test

0 commit comments

Comments
 (0)