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

Lack of support for JUnit 3 tests #25

Open
winglam opened this issue Jan 11, 2021 · 0 comments
Open

Lack of support for JUnit 3 tests #25

winglam opened this issue Jan 11, 2021 · 0 comments

Comments

@winglam
Copy link
Contributor

winglam commented Jan 11, 2021

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

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