Feature: support other JUnit versions
luana-martins opened this issue · 0 comments
luana-martins commented
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.