File tree Expand file tree Collapse file tree 6 files changed +47
-43
lines changed
Expand file tree Collapse file tree 6 files changed +47
-43
lines changed Original file line number Diff line number Diff line change 1515 contents : write
1616 steps :
1717 - uses : actions/checkout@v6
18- - uses : actions/setup-java@v5
19- with :
20- distribution : ' temurin'
21- java-version : ' 21'
22- cache : ' maven'
23- - run : |
24- mvn verify
25- # Test if the jar file works
26- ./target/app/bin/cucumber-messages-cli --help
27- working-directory: java
2818 -
uses :
cucumber/[email protected] 2919 with :
3020 github-token : ${{ secrets.GITHUB_TOKEN }}
31- - name : upload Unix artifact
32- uses : actions/upload-release-asset@v1
33- env :
34- GITHUB_TOKEN : ${{ github.token }}
35- with :
36- upload_url : ${{ steps.create_release.outputs.upload_url }}
37- asset_path : java/target/distributions/app/cucumber-messages-cli.tar.gz
38- asset_name : cucumber-messages-cli.tar.gz
39- asset_content_type : application/gzip
40- - name : upload Windows artifact
41- uses : actions/upload-release-asset@v1
42- env :
43- GITHUB_TOKEN : ${{ github.token }}
44- with :
45- upload_url : ${{ steps.create_release.outputs.upload_url }}
46- asset_path : java/target/distributions/app/cucumber-messages-cli.zip
47- asset_name : cucumber-messages-cli.zip
48- asset_content_type : application/zip
Original file line number Diff line number Diff line change 4141 - run : |
4242 mvn verify
4343 # Test if the jar file works
44- ./target/app/bin/ cucumber-messages-cli --help
44+ ./target/app/cucumber-messages-cli/bin/cucumber-messages --help
4545 working-directory: java
4646
Original file line number Diff line number Diff line change @@ -6,10 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
66and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
77
88## [ Unreleased]
9-
10- ## [ 0.0.1] - 2025-12-11
119### Changed
1210- Initial release
1311
14- [ Unreleased ] : https://github.com/cucumber/messages-cli/compare/v0.0.1...HEAD
15- [ 0.0.1 ] : https://github.com/cucumber/messages-cli/compare/1c14a4838e49c7c0b02c09d884b9c783790070f0...v0.0.1
12+ [ Unreleased ] : https://github.com/cucumber/messages-cli/compare/1c14a4838e49c7c0b02c09d884b9c783790070f0...HEAD
Original file line number Diff line number Diff line change 11# messages-cli
2+
23Commandline interface to work with Cucumber Messages
34
4- ## TODO:
5- - Build as standalone artifact
6- - Publish as a CLI tool
7- - Write README.
8- - Tidelift
9- - Support JSON Formatter
5+ Given a messages file produce a test report in one of these format:
6+
7+ * JUnit XML
8+ * TestNG XML
9+ * Cucumber HTML
10+ * Cucumber JSON
11+
12+ ## Building
13+
14+ Required
15+ * Apache Maven 3.9.9+
16+ * Java JRE 21+
17+
18+ First, checkout the latest release ` X.Y.Z ` :
19+
20+ ```
21+ git clone https://github.com/cucumber/messages-cli.git
22+ git checkout vX.Y.Z
23+ ```
24+
25+ Then build the project
26+
27+ ``` shell
28+ cd java
29+ mvn clean package
30+ ```
31+
32+ Then install the artifacts, for example on Unix:
33+
34+ ``` shell
35+ cp -r target/app/cucumber-messages-cli ~ /opt
36+ ln -s ~ /opt/cucumber-messages-cli/bin/cucumber-messages ~ /.local/bin/cucumber-messages
37+ ```
38+
39+ On Windows: copy the ` target/app/cucumber-messages-cli ` somewhere and put the
40+ ` cucumber-messages.bat ` in your ` PATH ` .
41+
42+ ## Usage
43+
44+ See: ` cucumber-messages --help `
Original file line number Diff line number Diff line change 2828
2929 <app .distribution.directory>${project.build.directory} /distributions/app</app .distribution.directory>
3030 <app .main.class>io.cucumber.messages.cli.CucumberMessagesCli</app .main.class>
31- < app .main.id>cucumber-messages-cli</ app .main.id>
31+
3232 </properties >
3333
3434 <scm >
141141 <artifactId >appassembler-maven-plugin</artifactId >
142142 <version >2.1.0</version >
143143 <configuration >
144- <assembleDirectory >${project.build.directory} /app</assembleDirectory >
144+ <assembleDirectory >${project.build.directory} /app/ ${project.artifactId} </assembleDirectory >
145145 <repositoryLayout >flat</repositoryLayout >
146146 <repositoryName >lib</repositoryName >
147147 <programs >
148148 <program >
149149 <mainClass >${app.main.class} </mainClass >
150- <id >${app.main.id} </id >
150+ <id >cucumber-messages </id >
151151 </program >
152152 </programs >
153153 </configuration >
Original file line number Diff line number Diff line change 1616 <outputDirectory ></outputDirectory >
1717 </fileSet >
1818 <fileSet >
19- <directory >${project.build.directory}/app</directory >
19+ <directory >${project.build.directory}/app/{$project.artifactId} </directory >
2020 <outputDirectory ></outputDirectory >
2121 </fileSet >
2222 </fileSets >
You can’t perform that action at this time.
0 commit comments