Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Coverage Analyzer for Unit Test?

Ruediger_Plantiko
Active Contributor
0 Likes
364

Hi there,

I think it would be a good idea to check the coverage of unit tests: If I run "module test" - are all the methods of the object under test processed by the unit tests?

A simple procedure should be available for this. Like an ST05 trace, the procedure could be like this:

- Switch on the coverage analyzer

- Run the module tests for a single code unit

- Switch off the coverage analyzer and view the results.

I have no experience with transaction SCOV. Would it be that simple to use it for isolated, simple unit test coverage? As far as I have looked at it, it seems a much more heavy-weight transaction which is not so easy to use for such a simple purposes. Is this right?

Did anybody make steps in this direction so far?

Rüdiger

1 ACCEPTED SOLUTION
Read only

former_member183804
Active Contributor
0 Likes
325

Hello Rüdiger,

you are right the combination of SCOV and ABAP Unit is quite natural. And yes in most of the available releases they to hardly team up.

With releases > 7.01 (SAP Netweaver) there will be dedicated support for the scenario you have described. For all releases <= 7.01 it is virtually impossible.

Best Regards

Klaus

1 REPLY 1
Read only

former_member183804
Active Contributor
0 Likes
326

Hello Rüdiger,

you are right the combination of SCOV and ABAP Unit is quite natural. And yes in most of the available releases they to hardly team up.

With releases > 7.01 (SAP Netweaver) there will be dedicated support for the scenario you have described. For all releases <= 7.01 it is virtually impossible.

Best Regards

Klaus