FP on S2187 for subclasses of test classes

Description

Not having cross-file analysis for this rule, we fail to detect if a class that falls into the test naming convention for rule S2187 is inheriting test methods from its parent class.
Having something like this in one file:

and in another file something like:

will raise an issue on the child class, because the test method implemented in the superclass, and ran in the child class, is not detected by the analyzer.

Activity

Michael GumowskiMarch 30, 2023 at 3:43 PM

Useful links:

Done
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Labels

Start date

Components

Fix versions

Priority

Sentry

Created March 30, 2023 at 3:43 PM
Updated December 11, 2024 at 9:21 AM
Resolved December 11, 2024 at 9:20 AM