Skip to content

Feature: support other JUnit versions #36

Description

@luana-martins

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions