Skip to content
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

Serenity report does not show parameterized tests examples in case it was ran from a test suite using jUnit5 #2917

Open
adanilevskyy-iownit opened this issue Sep 7, 2022 · 4 comments

Comments

@adanilevskyy-iownit
Copy link

adanilevskyy-iownit commented Sep 7, 2022

Hi Guys,

I faced the issue after migrating my test project to jUnit5.
if I run some test class with Parametrised tests directly then the report look correct:
correct_report

but if I run this test class from a tests suite like:
@suite
@SelectClasses({
MyTestClass.class
})

public class MyTestSuite {
}
the report looks :
incorrect_report

my build:
'net.serenity-bdd:serenity-core:3.3.2'
'net.serenity-bdd:serenity-junit5:3.3.2'
'org.junit.platform:junit-platform-suite-engine:1.9.0'

and SerenityJUnit5Extension on class level

Do you have any thoughts on this?

@wakaleo
Copy link
Member

wakaleo commented Sep 7, 2022

Hmmm, I haven't used the JUnit 5 @suite and @selectClass annotations - I imagine they aren't supported yet - @cliviu?

@adanilevskyy-iownit
Copy link
Author

adanilevskyy-iownit commented Sep 7, 2022

@wakaleo In Junit5 docs said that they migrated from @RunWith(JUnitPlatform.class) to the @suite

@cliviu
Copy link
Collaborator

cliviu commented Sep 8, 2022

I'm also not sure right now, I have to take a look. Most probably is not supported yet.

@adanilevskyy-iownit
Copy link
Author

@cliviu It would be great to add support to these annotations to the next Serenity version, if possible of course ))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants