Details
-
Suggestion
-
Resolution: Won't Fix
-
None
-
Clover 4.0.2
Ant 1.8
Java 1.8
TestNG 6.8.7
Description
If a TestNG test method is private:
public class TestClass { @Test private void testSomething() { /* ... */ } }
then TestNG recognises the method as a test method and will run it, but Clover does not recognise it as a test method during the instrumentation phase. This results in all such test methods being run during an optimized test run.
Workaround: Make all such methods public.
Related Clover documentation: https://confluence.atlassian.com/display/CLOVER/Clover+test+detection