Hi ADT community,
You can use ABAP Unit to easily write automated tests for your repository objects, particularly if the production code you want to test is contained in a class pool, function pool or report. These object types are the only ones that can contain test code and therefore we call them test containers.
Other object types, like DDL sources or simple transformations cannot contain any test code. If you want to test a CDS view contained in a DDL source you have to use another repository object (a test container) and write the tests for the CDS view there.
This works fine, but there is one issue: the test code is not related to the production code. Therefore it is difficult to find the relevant tests for a certain object and execute them. To solve this issue, a relation between a test and a piece of production code has to be modeled. To model this connection, you can write a specific @testing link as ABAP doc comment in front of the test method or test class.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
10 | |
9 | |
9 | |
7 | |
7 | |
7 | |
6 | |
6 | |
5 |