Skip to content

Lack of support for JUnit 3 tests #25

@winglam

Description

@winglam

testrunner appears unable to control the order of methods within a class for JUnit 3 tests.

The order of test classes for JUnit 3 tests is able to be controlled but the method order within a class is not controlled.

The same problem is in our custom Maven surefire plugin.
https://github.com/TestingResearchIllinois/maven-surefire/tree/test-method-sorting

To reproduce create two simple tests that depend on a variable x and assert different values of x with one of the test changing x. Adding println to see the order of the tests would also help.

Running something like the following will always see the tests pass or fail as the order is always the same.
rm -rf .dtfixingtools/; mkdir .dtfixingtools/; cp original-order .dtfixingtools/original-order; mvn testrunner:testplugin -Ddetector.detector_type=random-class-method -Ddt.randomize.rounds=5 -Ddt.detector.original_order.all_must_pass=false

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