[JVM] - Regarding issues in generating HTML report after I run cucumber tests

86 views
Skip to first unread message

Prashanth T.V

unread,
May 10, 2013, 1:48:58 AM5/10/13
to cu...@googlegroups.com
Hello Everyone,

This is regarding issues in generating HTML report after I run cucumber tests

I have 2 tests in my eclipse project and when I ran these tests though maven it gets executed successfully.
 But, when I see my HTML report, it displays details of only one test case.

Also, the cucumber.json file which gets generated has details of only one test case(though I ran 2 test cases), Can you please help me in this regard.

Please let me know if you require any other information.
I have attached the pom.xml which I have been using for your reference.

Regards
Prashanth

pom.xml

Senthil

unread,
May 17, 2013, 7:46:35 PM5/17/13
to cu...@googlegroups.com
You shouldn't have 2 test class class annotated with Cucumber runner. If so, the second one overwrites first created report.  Best practice is to have only one test class, but can have multiple feature files and/or multiple scenarios.
 

Senthil

Marit van Dijk

unread,
Oct 22, 2017, 2:00:20 PM10/22/17
to Cukes
Report is overwritten only when both runners specify the exact same filename. Can also be solved by specifying different filenames for reports.
See: https://github.com/cucumber/cucumber-jvm/issues/472
Reply all
Reply to author
Forward
0 new messages