Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/test-java.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,16 @@ jobs:
- run: mvn verify
working-directory: java

test-java-pittest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
with:
distribution: 'temurin'
java-version: '21'
cache: 'maven'
- run: mvn test-compile org.pitest:pitest-maven:mutationCoverage
working-directory: java
3 changes: 3 additions & 0 deletions dotnet/Cucumber.QueryTest/QueryAcceptanceTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,16 @@ public class QueryAcceptanceTest
{
private static readonly string[] _sources = new[]
{
"all-statuses.ndjson",
"attachments.ndjson",
"backgrounds.ndjson",
"empty.ndjson",
"examples-tables.ndjson",
"global-hooks-attachments.ndjson",
"global-hooks.ndjson",
"hooks.ndjson",
"minimal.ndjson",
"rules-backgrounds.ndjson",
"rules.ndjson",
"unknown-parameter-type.ndjson"
};
Expand Down
15 changes: 15 additions & 0 deletions java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,21 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.pitest</groupId>
<artifactId>pitest-maven</artifactId>
<version>1.25.9</version>
<dependencies>
<dependency>
<groupId>org.pitest</groupId>
<artifactId>pitest-junit5-plugin</artifactId>
<version>1.2.3</version>
</dependency>
</dependencies>
<configuration>
<mutationThreshold>85</mutationThreshold>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,16 @@ static List<QueryTestCase> acceptance() {

private static List<Path> getSources() {
return Arrays.asList(
Paths.get("../testdata/src/all-statuses.ndjson"),
Paths.get("../testdata/src/attachments.ndjson"),
Paths.get("../testdata/src/backgrounds.ndjson"),
Paths.get("../testdata/src/empty.ndjson"),
Paths.get("../testdata/src/examples-tables.ndjson"),
Paths.get("../testdata/src/global-hooks-attachments.ndjson"),
Paths.get("../testdata/src/global-hooks.ndjson"),
Paths.get("../testdata/src/hooks.ndjson"),
Paths.get("../testdata/src/minimal.ndjson"),
Paths.get("../testdata/src/rules-backgrounds.ndjson"),
Paths.get("../testdata/src/rules.ndjson"),
Paths.get("../testdata/src/unknown-parameter-type.ndjson")
);
Expand Down
3 changes: 3 additions & 0 deletions javascript/src/acceptance.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,16 @@ const reversePickleComparator = (a: Pickle, b: Pickle): number => {

describe('Acceptance Tests', async () => {
const sources = [
path.join(import.meta.dirname, '../../testdata/src/all-statuses.ndjson'),
path.join(import.meta.dirname, '../../testdata/src/attachments.ndjson'),
path.join(import.meta.dirname, '../../testdata/src/backgrounds.ndjson'),
path.join(import.meta.dirname, '../../testdata/src/empty.ndjson'),
path.join(import.meta.dirname, '../../testdata/src/examples-tables.ndjson'),
path.join(import.meta.dirname, '../../testdata/src/global-hooks-attachments.ndjson'),
path.join(import.meta.dirname, '../../testdata/src/global-hooks.ndjson'),
path.join(import.meta.dirname, '../../testdata/src/hooks.ndjson'),
path.join(import.meta.dirname, '../../testdata/src/minimal.ndjson'),
path.join(import.meta.dirname, '../../testdata/src/rules-backgrounds.ndjson'),
path.join(import.meta.dirname, '../../testdata/src/rules.ndjson'),
path.join(import.meta.dirname, '../../testdata/src/unknown-parameter-type.ndjson'),
]
Expand Down
3 changes: 3 additions & 0 deletions ruby/spec/cucumber/query_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,16 @@ def parse_ndjson_file(path)
}

sources = %w[
all-statuses
attachments
backgrounds
empty
examples-tables
global-hooks
global-hooks-attachments
hooks
minimal
rules-backgrounds
rules
unknown-parameter-type
]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"UNKNOWN" : 0,
"PASSED" : 1,
"SKIPPED" : 1,
"PENDING" : 1,
"UNDEFINED" : 1,
"AMBIGUOUS" : 1,
"FAILED" : 1
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6
1 change: 1 addition & 0 deletions testdata/src/all-statuses.findAllPickleSteps.results.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18
1 change: 1 addition & 0 deletions testdata/src/all-statuses.findAllPickles.results.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[
"85",
"83",
"82",
"81",
"80",
"79"
]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[
"85",
"83",
"82",
"81",
"80",
"79"
]
1 change: 1 addition & 0 deletions testdata/src/all-statuses.findAllTestCases.results.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18
1 change: 1 addition & 0 deletions testdata/src/all-statuses.findAllTestSteps.results.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[ ]
4 changes: 4 additions & 0 deletions testdata/src/all-statuses.findAttachmentsBy.results.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"testStepFinished" : [ ],
"testRunHookFinished" : [ ]
}
5 changes: 5 additions & 0 deletions testdata/src/all-statuses.findHookBy.results.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"testStep" : [ ],
"testRunHookStarted" : [ ],
"testRunHookFinished" : [ ]
}
26 changes: 26 additions & 0 deletions testdata/src/all-statuses.findLineageBy.results.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"testCaseStarted" : [
"All statuses - Passing",
"All statuses - Failing",
"All statuses - Pending",
"All statuses - Skipped",
"All statuses - Undefined",
"All statuses - Ambiguous"
],
"testCaseFinished" : [
"All statuses - Passing",
"All statuses - Failing",
"All statuses - Pending",
"All statuses - Skipped",
"All statuses - Undefined",
"All statuses - Ambiguous"
],
"pickle" : [
"All statuses - Passing",
"All statuses - Failing",
"All statuses - Pending",
"All statuses - Skipped",
"All statuses - Undefined",
"All statuses - Ambiguous"
]
}
26 changes: 26 additions & 0 deletions testdata/src/all-statuses.findLocationOf.results.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[
{
"line" : 6,
"column" : 3
},
{
"line" : 11,
"column" : 3
},
{
"line" : 16,
"column" : 3
},
{
"line" : 21,
"column" : 3
},
{
"line" : 26,
"column" : 3
},
{
"line" : 31,
"column" : 3
}
]
1 change: 1 addition & 0 deletions testdata/src/all-statuses.findMeta.results.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"fake-cucumber"
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"testCaseStarted" : [
"PASSED",
"FAILED",
"PENDING",
"SKIPPED",
"UNDEFINED",
"AMBIGUOUS"
],
"testCaseFinished" : [
"PASSED",
"FAILED",
"PENDING",
"SKIPPED",
"UNDEFINED",
"AMBIGUOUS"
]
}
58 changes: 58 additions & 0 deletions testdata/src/all-statuses.findPickleBy.results.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"testCaseStarted" : [
"Passing",
"Failing",
"Pending",
"Skipped",
"Undefined",
"Ambiguous"
],
"testCaseFinished" : [
"Passing",
"Failing",
"Pending",
"Skipped",
"Undefined",
"Ambiguous"
],
"testStepStarted" : [
"Passing",
"Passing",
"Passing",
"Failing",
"Failing",
"Failing",
"Pending",
"Pending",
"Pending",
"Skipped",
"Skipped",
"Skipped",
"Undefined",
"Undefined",
"Undefined",
"Ambiguous",
"Ambiguous",
"Ambiguous"
],
"testStepFinished" : [
"Passing",
"Passing",
"Passing",
"Failing",
"Failing",
"Failing",
"Pending",
"Pending",
"Pending",
"Skipped",
"Skipped",
"Skipped",
"Undefined",
"Undefined",
"Undefined",
"Ambiguous",
"Ambiguous",
"Ambiguous"
]
}
20 changes: 20 additions & 0 deletions testdata/src/all-statuses.findPickleStepBy.results.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
"a step",
"a step",
"a step",
"a step",
"a failing step",
"a step",
"a step",
"a pending step",
"a step",
"a step",
"a skipped step",
"a step",
"a step",
"an undefined step",
"a step",
"a step",
"an ambiguous step",
"a step"
]
20 changes: 20 additions & 0 deletions testdata/src/all-statuses.findStepBy.results.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
"a step",
"a step",
"a step",
"a step",
"a failing step",
"a step",
"a step",
"a pending step",
"a step",
"a step",
"a skipped step",
"a step",
"a step",
"an undefined step",
"a step",
"a step",
"an ambiguous step",
"a step"
]
Loading
Loading