
Use transaction SAUNIT_CLIENT_SETUP to control how ABAP Unit tests are run in your SAP System.
You can use the transaction directly. SAUNIT_CLIENT_SETUP is also part of the IMG Implementation Guide.
ABAP Unit execution in Production Systems: In Production Systems:
ABAP Unit code is not generated to reduce the size of the program load.
ABAP Unit tests may not be run in clients that are marked as production clients.
With transaction SAUNIT_CLIENT_SETUP you can further restrict the use of ABAP Unit tests in your system.
Personal favorite-specific customizing in the ABAP Unit Browser: You can also access the transaction from the ABAP Unit Browser. In the Browser, the settings that you make apply to each individual 'favorite' group of unit tests that you define. Any changes that you make in the Browser do not affect the system standard settings that you make directly in the transaction or in IMG.
To customize the execution of ABAP Unit tests, do the following:
Start transaction SAUNIT_CLIENT_SETUP. You will need an Administrator role (authorization object S_ADMI_FCD with authorization TLCK.
Switch the transaction to edit mode by selecting the Change icon.
You can take the following actions:
Allow or disallow ABAP Unit tests. Mark the Prohibit Unit Tests check box to stop ABAP Unit tests from running in your current client. Setting and saving the check box has immediate effect.
Clearing the check box allows ABAP Unit tests to run again.
Set the time limits for the unit test DURATION property.
You can change the time limits in seconds directly. Or you can choose Proposal to have the ABAP Unit infrastructure generate suggested values for your system.
Set the highest RISK LEVEL that is allowed to run in the system. The ABAP Unit infrastructure does not run test methods that have a higher RISK LEVEL than the setting.
The values that you choose also restrict the DURATION and RISK LEVEL settings that users of the Code Inspector can choose. A user in the Code Inspector cannot set the RISK LEVEL or DURATION higher than they are set here.