Command line argument --test
jose opened this issue · 3 comments
jose commented
Hi,
As defined in section Minimal Usage, -t|--test
"Defines the tests of the project". Are these "tests" test classes or test cases/methods? And, should failing and non-failing tests be provided, or just failing tests?
--
Best,
Jose
monperrus commented
The test argument is passed to NopolContext (new NopolContext(sourceFiles, classpath, jsapConfig.getStringArray("test"))
)
where the constructor reads NopolContext(File[] sourceFile, URL[] classpath, String[] testClasses)
So the first answer is "test classes".
should failing and non-failing tests be provided
All tests that you want to consider for a plausible patch. Nopol will identify the failing test methods in those test classes by running them.
jose commented
Thanks @monperrus.