Skip to content

Latest commit

 

History

History
31 lines (17 loc) · 1.24 KB

test-seam-usage.md

File metadata and controls

31 lines (17 loc) · 1.24 KB

code pal for ABAP > Documentation > TEST-SEAM Statement Usage Check

TEST-SEAM Statement Usage Check

What is the intent of the 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.

How does the check work?

This check searches for usage of the TEST-SEAM statement.

How to solve the issue?

TEST-SEAM shall not be used. Refactor the code so that a proper isolation technique (like mocks) can be used.

What to do in case of exception?

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.

Example

TEST-SEAM seam_name.    "#EC TEST_SEAM_USAGE

Further Readings & Knowledge