serenity-bdd / serenity-maven-plugin

19 stars 21 forks source link

empty report after aggregate #60

Closed Prasannajnaeyulu closed 6 years ago

Prasannajnaeyulu commented 6 years ago

I am using serenity maven plugin for aggregating the reports. If I run the tests using CucumberWithSerenity runner with one specific feature tag say, -Dcucumber.options="--tags @Login" then I am getting the aggregated report with all the scenarios of Login feature in the report. But, if I run the specific scenarios/features with multiple tags as -Dcucumber.options="--tags @Login, @book-appointment" then I am getting the empty results.

I am using.. serenity-core 1.9.6 serenity-maven-plugin 1.9.2 serenity-cucumber 1.9.3

Have you seen below, total 9 scenarios have been executed successfully. But in the aggregation report its just said like 0 tests and I got empty report as in the attached screenshot. empty_report

Excerpts from console:

9 Scenarios (9 passed) 42 Steps (42 passed) 9m51.021s

Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 591.971 sec - in com.auto.CucumberSerenityTestRunner

Results :

Tests run: 9, Failures: 0, Errors: 0, Skipped: 0

[INFO] [INFO] --- serenity-maven-plugin:1.9.2:aggregate (serenity-reports) @ mobile-auto --- [INFO] currentproject.base.dir: C:\workspace\automation\mobile-auto **[INFO] Generating test results for 0 tests_** [INFO] 6 requirements loaded after 399 ms [INFO] 6 related requirements found after 400 ms [INFO] Generating test outcome reports: false [INFO] Starting generating reports: 442 ms [INFO] Configured report threads: 20 [INFO] Test results for 0 tests generated in 2269 ms

Prasannajnaeyulu commented 6 years ago

Its the problem with cucumber tag syntax. Hence, closing the issue. I must use cucumber.options parameter with the correct Cucumber tags syntax (see https://github.com/cucumber/cucumber/tree/master/tag-expressions), e.g.

mvn clean verify -Dcucumber.options="--tags '@sample1 or @sample2'"