-
-
Notifications
You must be signed in to change notification settings - Fork 513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No tags in reports when updating from serenity version 3.6.12 to 4.0.12 #3365
Comments
Am I the only one having this problem ? Or are there any news on this issue ? |
@WithTagValuesOf is not supported in JUnit 5, use the native JUnit 5 tags instead. |
Make sure you put the @tag annotation above the parameterised test itself and not the class as a whole: |
OK, there might be an issue adding the tags for parameterised tests. I'm not sure why that might be. Have a look at the use of the JUnit5Tags and SerenityJUnit5Extension classes in serenity-junit5 if you would like to investigate. |
I tried investigating on my side. So as i said before, the tests without the |
Hello, i recently updated my serenity to the 3.9.8 instead of the 4.0 and, it looks like the problem is the same. I think this could help you track the regression. |
I did intestigate this. JUnit 5 tags are not fully supported in Serenity 4 (or Serenity 3, which didn't support JUnit 5). JUnit 5 has it's own tag language which is not portable and needs to be reproduced in the Serenity code and integrated into the test filtering and reporting logic to support it. If this feature is important for your company you could speed up the implementation (or ensure that it is implemented in the near future) by either implementing it on your side, or opting for one of the commerical support packages https://www.serenitydojo.academy/serenity-bdd-support-packages). The commercial support packages are generally the fastest and most cost-effective solution. |
What happened?
I just updated my serenity version to the 4.0.12 and since then i don't see my tags in the reports. It was working in 3.6.12.
I changed my import from
net.thucydides.core.annotations.WithTagValuesOf
tonet.serenitybdd.annotations.WithTagValuesOf
.I also can't aggregate my report based on the tags, like i did before with this command:
mvn serenity:aggregate -Dtags="Tag1"
What did you expect to happen?
I want to see my tags in my tests and also be able to aggregate my tests with this command:
mvn serenity:aggregate -Dtags="myTag"
Serenity BDD version
4.0.12
JDK version
17.0.2
Execution environment
Windows, firefox
How to reproduce the bug.
This is what my features looks like:
And this is my pom.xml
The text was updated successfully, but these errors were encountered: