Test frameworks
- 'assertEquals()' between objects of inconvertible types
Reports calls to assertion methods where the "expected" and "actual" arguments are of incompatible types.
- Failed line in test
Reports failed method calls or assertions in tests.
- Test class without tests
Reports non-abstract test cases without any test methods.
- Test in product source
Reports test classes and test methods that are located in production source trees.
- Test method without assertions
Reports test methods that do not contain any assertions.
- Test-only usage in production code
Reports @TestOnly- and @VisibleForTesting-annotated methods and classes that are used in production code.
- TestCase with non-trivial constructors
Reports test cases with initialization logic in their constructors.
Last modified: 11 September 2024