File: JUnit4TestNotRun.md

package info (click to toggle)
error-prone-java 2.18.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 23,204 kB
  • sloc: java: 222,992; xml: 1,319; sh: 25; makefile: 7
file content (6 lines) | stat: -rw-r--r-- 463 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
Unlike in JUnit 3, JUnit 4 tests will not be run unless annotated with @Test.
The test method that triggered this error looks like it was meant to be a test,
but was not so annotated, so it will not be run. If you intend for this test
method not to run, please add both an @Test and an @Ignore annotation to make it
clear that you are purposely disabling it. If this is a helper method and not a
test, consider reducing its visibility to non-public, if possible.