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

Feature: support other JUnit versions #36

Open
luana-martins opened this issue Nov 10, 2020 · 0 comments
Open

Feature: support other JUnit versions #36

luana-martins opened this issue Nov 10, 2020 · 0 comments

Comments

@luana-martins
Copy link
Member

Problem.
Currently, JNose supports only JUnit4. However, we reused the detection rules from tsDetect and it also supports JUnit3.
We have inserted an unnecessary restriction to JNose regarding the JUnit version. We only consider a class that has a "@test" annotation, which might occur in JUnit 4 or higher.

Solution.
To identify a test class, we can (1) check if its name contains the word "Test" as a prefix or suffix, and (2) check if there is a JUnit import.

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

1 participant