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

Junit5 test skipped #591

Closed
SupinePandora43 opened this issue Jan 22, 2019 · 7 comments
Closed

Junit5 test skipped #591

SupinePandora43 opened this issue Jan 22, 2019 · 7 comments

Comments

@SupinePandora43
Copy link

i use #470 fix.

i can run Junit4 test cases, but not Junit5.
if i write:
@org.junit.Test // passed
public void Junit4Test(){
assertEquals(1,1);
}
@org.junit.jupiter.api.Test // skipped
public void Junit5Test(){
assertEquals(1,1);
}
but if i write junit5 test first, junit5 and junit4 test's skipped
(junit5/4 from jar in test runner extension (included using .classpath))

@jdneo
Copy link
Member

jdneo commented Jan 22, 2019

@SupinePandora43 Could you please provide a sample project which can repro this issue? This could help to investigate the problem.

@SupinePandora43
Copy link
Author

https://yadi.sk/d/J-ga40z38nsNWQ - my project

@jdneo
Copy link
Member

jdneo commented Jan 23, 2019

@SupinePandora43 Thank you for sharing your project.

Here are some problems with your project that I've observed:

I'm closing this issue since it does not look like a problem of the Test Runner. But feel free to let us know your problem if you have any.

Thanks.

@jdneo jdneo closed this as completed Jan 23, 2019
@SupinePandora43
Copy link
Author

how add -n option to runner? i trying to create config(java.test.config), but i see 'Unrecognized option: -n'. @jdneo

@jdneo
Copy link
Member

jdneo commented Jan 23, 2019

@SupinePandora43 How about changing the class name from Main to MainTest

@jdneo
Copy link
Member

jdneo commented Jan 23, 2019

@SupinePandora43 By the way, during investigating the problem, I found a bug which will cause the problem Unrecognized option: -n, the tracking issue is here: #592

Thank you for let us know this problem!

@SupinePandora43
Copy link
Author

@jdneo thanks, i just create class MainTest, but first trying add -n option to runner!

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

No branches or pull requests

2 participants