code pal for ABAP > Documentation > TEST-SEAM Statement Usage Check
This check searches for the usage of the ABAP statement TEST-SEAM
. Test seams are invasive and tend to get entangled in private dependencies, so that they are hard to keep alive and stable in the long run.
This check searches for usage of the TEST-SEAM
statement.
TEST-SEAM
shall not be used. Refactor the code so that a proper isolation technique (like mocks) can be used.
In exceptional cases, you can suppress this finding by using the pseudo comment "#EC TEST_SEAM_USAGE
which should be placed right after the declaration.
TEST-SEAM seam_name. "#EC TEST_SEAM_USAGE