Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expand JUnit3TestNotRun check to find non-public potential test methods.
RELNOTES: Expand JUnit3TestNotRun check to find non-public test methods. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=150481412
- Loading branch information
1 parent
671f58c
commit c3bfaac
Showing
5 changed files
with
213 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,8 @@ | |||
JUnit 3 requires that test method names start with "`test`". The method that | |||
triggered this error looks like it is supposed to be a test, but misspells the | |||
required prefix; has `@Test` annotation, but no prefix; or has the wrong method | |||
signature. As a consequence, JUnit 3 will ignore it. | |||
|
|||
If you meant to disable this test on purpose, or this is a helper method, change | |||
the name to something more descriptive, like "`disabledTestSomething()`". You | |||
don't need an `@Test` annotation, but if you want to keep it, add `@Ignore` too. |