Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

Since the last release, when I execute a single unit test (via Develop > Apex Classes > Test Class > Run Test), I get taken to the "Apex Test Execution" screen. This screen shows whether the test passed or failed, but not the line coverage directly attributable to this unit test.

Previously, when you executed a single unit test you would get a full list of classes and the coverage % you got from that single unit test.

Other than doing a "Clear Code Coverage" (which takes forever), then running a single unit test, then going back to the Apex Classes view, is there a simple way to just see the coverage directly attributable to one run of a test class? If not this seems like a big regression in developer-facing functionality.

share|improve this question
add comment

1 Answer 1

up vote 4 down vote accepted

I think what you want is now available in test execution available the Developer Console.

enter image description here

share|improve this answer
    
Exactly what I needed, thanks! –  jkraybill Feb 6 '13 at 0:08
    
Am I right in seeing that you can get test-method-level attributable code coverage, and global-level code coverage, but not test-level coverage? I want to see the total coverage my entire test class gives across all methods, like I had before, but that seems to no longer be possible? –  jkraybill Feb 6 '13 at 0:27
    
@jkraybill - Your are correct. You only get the report at the individual unit test level when viewing the test detail, but not the test class. I haven't see it and don't see it in the docs either. –  Peter Knolle Feb 6 '13 at 0:54
    
I don't see anywhere in SF that has the functionality you are looking for anymore. Can you run the test through the IDE instead? The Apex Test Runner's test results window reports at the class level. –  Peter Knolle Feb 6 '13 at 1:14
    
Yeah I can; I have avoided that in the past because I used to notice coverage discrepancies between the IDE and the UI, and the UI was always in line with the numbers I got back from code deployments. Hope that's still not the case. –  jkraybill Feb 6 '13 at 6:14
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.