Activity Forums Salesforce® Discussions How can i check how many classes are covered by a single test Class?

  • Obivan

    Member
    March 17, 2016 at 9:45 am

    First of all, it is highly unadvisable to not use limits ,i.e., test.startTest()/test.stopTest() operators. Not only is it wrong testing practice, it creates lots of problem later on (like you are facing now).
    With that said
    It's not possible to track which test class covers which class and by how much percentage. You can figure out the percentage of coverage for a class but cannot track how much is covered by a single test class. You can also not figure out how much a test class cover.
    The workaround is to track all fired triggers, and trace outputs of all triggers. You can do that through debug logs. If you test fails you will get a trace of classes the test connected and at which point it failed.

  • Neha

    Member
    March 22, 2016 at 10:22 am

    You can use "Developer Console" to check which class covered by this test class and the percentage of coverage.

    You can refer this link

  • Parul

    Member
    September 7, 2018 at 3:41 am

    Developer Console > File > Open > 'Select class', top left corner says which tests are covering the specific class and the percentage of coverage of each class.

     

    Thanks

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos