09-21-2017 9:33 AM
Hi, experts,
I am writing UT for some OData services in ER9/500 and interested in the coverage information. I heard that the coverage information can be obtained using the TCode SCOV. So I have a try and something strange happened: In the Display Details, I entered the class name in the object name and HTTP for Test Group. After execution, even for some classes without UT implemented there are already some coverages there. I am wondering whether these coverage information is true? And is it the right way to check the OData UT coverage by using SCOV?
Thanks in advance.
George
09-21-2017 10:24 AM
Code Coverage is not specific to Unit Tests (UT as you say), everything called is recorded. When you run your unit tests to test a given class, you may want to cover 100% of the code of your class, it's what the code coverage is for, you don't need to know what other called programs are covered or not.