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

Support non-junit tests #1064

Open
g4s8 opened this issue Dec 8, 2019 · 2 comments
Open

Support non-junit tests #1064

g4s8 opened this issue Dec 8, 2019 · 2 comments

Comments

@g4s8
Copy link

g4s8 commented Dec 8, 2019

I'm using custom test framework and maven plugin: https://github.com/g4s8/oot/
I have several test-case classes in the project under src/test/java path, all names of test cases ends with *Test. But Qulice fails with JUnit4TestShouldUseTestAnnotation and TestClassWithoutTestCases because I don't have any @Test annotation in test classes:

This class name ends with Test but contains no test cases (TestClassWithoutTestCases)
JUnit 4 tests that execute tests should use the @Test annotation, JUnit 5 tests should use @Test, @RepeatedTest, @TestFactory, @TestTemplate or @ParameterizedTest (JUnit4TestShouldUseTestAnnotation) 

To build it I need to add this line to each test class:

 @SuppressWarnings({"PMD.TestClassWithoutTestCases", "PMD.JUnit4TestShouldUseTestAnnotation"})
@0crat
Copy link
Collaborator

0crat commented Dec 8, 2019

@krzyk/z please, pay attention to this issue

@0crat
Copy link
Collaborator

0crat commented Dec 8, 2019

@g4s8/z this project will fix the problem faster if you donate a few dollars to it; just click here and pay via Stripe, it's very fast, convenient and appreciated; thanks a lot!

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

2 participants