Comments (7)
Perfectly fine, thanks!
from cluecumber.
-pl horse-frontend on the command line seems to do the job, at least locally.
I think we'll be fine with that, but interesting. Sorry bothering You twice today.
from cluecumber.
Oh interesting, will investigate tomorrow.
from cluecumber.
I am not sure I am following what you mean. For this, a minimal example project would help a lot.
Also, some more explanation about what the sub modules are doing would be nice.
As far as I understand you have a multi-module Maven project.
- Does each module execute Cucumber tests and generate an own json folder in their respective target?
- When and where is Cluecumber invoked? In the parent module?
from cluecumber.
Hi!
Yes, a multi-module Maven project
- atg-horse-test-automation (Parent POM)
- common-service
- horse-frontend (Here we have the tests)
<name>atg-horse-test-automation</name>
<description>Sample</description>
<packaging>pom</packaging>
<modules>
<module>common-service</module>
<module>horse-frontend</module>
</modules>
After running tests we get a cucumber-report folder in horse-frontend/target
including a cucumber.json - file. This is the only place we get a cucumber.json file
The source JSON/generated HTML variables point to folder ${project.build.directory}
This can of course be changed, but we might have tests in several submodules I guess.
All commands are executed from project root folder.
mvnw.cmd cluecumber:reporting
09:59:25.701 INFO: ------------------------------------------------------------------------
09:59:25.704 INFO: [ Cluecumber v3.0.1 ]
09:59:25.704 INFO: ------------------------------------------------------------------------
09:59:25.706 INFO: - source JSON report directory : C:\repos\horse-test-automation\target/cucumber-report
09:59:25.707 INFO: - generated HTML report directory : C:\repos\horse-test-automation\target/generated-report
09:59:25.709 INFO: ------------------------------------------------------------------------
09:59:25.712 INFO: - fail pending/undefined scenarios : false
09:59:25.713 INFO: - expand before/after hooks : true
09:59:25.714 INFO: - expand step hooks : false
09:59:25.715 INFO: - expand doc strings : false
09:59:25.716 INFO: - expand attachments : false
09:59:25.716 INFO: - page title : Cluecumber Report
09:59:25.717 INFO: - start page : ALL_SCENARIOS
09:59:25.718 INFO: - custom parameters display mode : SCENARIO_PAGES
09:59:25.726 INFO: - colors (passed, failed, skipped) : #60cc79, #fc7180, #f7c42b
09:59:25.728 INFO: ------------------------------------------------------------------------
09:59:25.731 WARN: Unable to traverse JSON files in C:\repos\horse-test-automation\target/cucumber-report
09:59:25.960 INFO: => Cluecumber Report: C:\repos\horse-test-automation\target/generated-report/index.html
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for atg-horse-test-automation 0.0.1-SNAPSHOT:
[INFO]
[INFO] atg-horse-test-automation .......................... SUCCESS [ 0.518 s]
[INFO] common-service ..................................... SKIPPED
[INFO] horse-frontend ..................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.840 s
[INFO] Finished at: 2022-12-19T09:59:25+01:00
[INFO] ------------------------------------------------------------------------
We get an empty report in the root module, no reports in the submodules
Empty report: horse-test-automation\target\generated-report
Adding -pl to the reporting
mvnw.cmd cluecumber:reporting -pl horse-frontend generates a report with details.
10:05:13.047 INFO: [ Cluecumber v3.0.1 ]
10:05:13.048 INFO: ------------------------------------------------------------------------
10:05:13.049 INFO: - source JSON report directory : C:\repos\horse-test-automation\horse-frontend\target/cucumber-report
10:05:13.050 INFO: - generated HTML report directory : C:\repos\horse-test-automation\horse-frontend\target/generated-report
10:05:13.052 INFO: ------------------------------------------------------------------------
10:05:13.055 INFO: - fail pending/undefined scenarios : false
10:05:13.056 INFO: - expand before/after hooks : true
10:05:13.057 INFO: - expand step hooks : false
10:05:13.058 INFO: - expand doc strings : false
10:05:13.059 INFO: - expand attachments : false
10:05:13.059 INFO: - page title : Cluecumber Report
10:05:13.060 INFO: - start page : ALL_SCENARIOS
10:05:13.061 INFO: - custom parameters display mode : SCENARIO_PAGES
10:05:13.068 INFO: - colors (passed, failed, skipped) : #60cc79, #fc7180, #f7c42b
10:05:13.069 INFO: ------------------------------------------------------------------------
10:05:13.529 INFO: => Cluecumber Report: C:\repos\horse-test-automation\horse-frontend\target/generated-report/index.html
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.923 s
[INFO] Finished at: 2022-12-19T10:05:13+01:00
[INFO] ------------------------------------------------------------------------
from cluecumber.
Hi, this seems to be a problem in your project setup. The way you run it will run the parent and the reporting directly. So at that point, there is no JSON available.
from cluecumber.
I don't think there is anything that needs to be done within Cluecumber. If you disagree, please let me know and I will reopen this issue.
from cluecumber.
Related Issues (20)
- Java Heap Exception for larger number of test cases HOT 1
- Add error message to scenario overview pages HOT 4
- Incorrect rendering of html elements within exception messages HOT 1
- Request jquery upgrade to address appsec vulnerability HOT 1
- Replace Gson on fire with own implementation
- Passing properties via command line
- Assumption message for Skipped scenario HOT 10
- v 3.0.1 does not show Exception if thrown in step below "Given" HOT 5
- Set up automated FTP example report push on release
- PDF Format of Repor HOT 2
- expandDocStrings property is not working in cluecumber-maven HOT 2
- Pie chart always showing results from all features HOT 2
- [Question] change field feature name HOT 2
- Assume/Abort in sub Steps creates Passed Scenario in the report with odd count of Steps/Skipped HOT 11
- Skip parameter on maven was removed HOT 2
- Inconsistent Background handling HOT 3
- The iFrame element shows empty content under HTML attachment Scenario Step HOT 7
- Adding status "Passed with warning" HOT 1
- Consolidated Scenario feature improvements
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cluecumber.