File tree Expand file tree Collapse file tree 5 files changed +13
-8
lines changed
src/main/java/io/cucumber/junitxmlformatter Expand file tree Collapse file tree 5 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [ Unreleased]
9
9
### Changed
10
- - Update dependency cucumber/query to ^13.3.0 ( [ # 77 ] ( https://github.com/cucumber/junit-xml-formatter/pull/77 ) )
11
- - Update dependency io.cucumber: query up to v13.5
10
+ - Update dependency cucumber/query to 14.0.1
11
+ - Update dependency io.cucumber: query up to v14.0.1
12
12
13
13
### Fixed
14
14
- Remove unnecessary coupling to ` node:assert ` ([ #77 ] ( https://github.com/cucumber/junit-xml-formatter/pull/77 ) )
Original file line number Diff line number Diff line change 59
59
<dependency >
60
60
<groupId >io.cucumber</groupId >
61
61
<artifactId >messages</artifactId >
62
- <version >[24 .0.0,29 .0.0)</version >
62
+ <version >[29 .0.1,30 .0.0)</version >
63
63
</dependency >
64
64
<dependency >
65
65
<groupId >io.cucumber</groupId >
66
66
<artifactId >query</artifactId >
67
- <version >[13.3.0 ,15.0.0)</version >
67
+ <version >[14.0.1 ,15.0.0)</version >
68
68
</dependency >
69
69
70
70
<dependency >
Original file line number Diff line number Diff line change 15
15
import io .cucumber .query .Lineage ;
16
16
import io .cucumber .query .NamingStrategy ;
17
17
import io .cucumber .query .Query ;
18
+ import io .cucumber .query .Repository ;
18
19
19
20
import java .time .Duration ;
20
21
import java .util .AbstractMap .SimpleEntry ;
25
26
import java .util .Optional ;
26
27
27
28
import static io .cucumber .messages .types .TestStepResultStatus .PASSED ;
29
+ import static io .cucumber .query .Repository .RepositoryFeature .INCLUDE_GHERKIN_DOCUMENTS ;
28
30
import static java .time .format .DateTimeFormatter .ISO_INSTANT ;
29
31
import static java .util .concurrent .TimeUnit .SECONDS ;
30
32
import static java .util .stream .Collectors .toList ;
31
33
32
34
class XmlReportData {
33
35
34
- private final Query query = new Query ();
36
+ private final Repository repository = Repository .builder ()
37
+ .feature (INCLUDE_GHERKIN_DOCUMENTS , true )
38
+ .build ();
39
+ private final Query query = new Query (repository );
35
40
private final NamingStrategy namingStrategy ;
36
41
37
42
private static final long MILLIS_PER_SECOND = SECONDS .toMillis (1L );
@@ -41,7 +46,7 @@ class XmlReportData {
41
46
}
42
47
43
48
void collect (Envelope envelope ) {
44
- query .update (envelope );
49
+ repository .update (envelope );
45
50
}
46
51
47
52
double getSuiteDurationInSeconds () {
Original file line number Diff line number Diff line change 22
22
"prepublishOnly" : " tsc --build tsconfig.build.json"
23
23
},
24
24
"dependencies" : {
25
- "@cucumber/query" : " ^14.0.0 " ,
25
+ "@cucumber/query" : " ^14.0.1 " ,
26
26
"@teppeis/multimaps" : " ^3.0.0" ,
27
27
"luxon" : " ^3.5.0" ,
28
28
"xmlbuilder" : " ^15.1.1"
You can’t perform that action at this time.
0 commit comments