You need to sign in to do that
Don't have an account?
mharikian1.3892229047844834E12
Code Coverage on class only shows 1 test covering the class when I have 5 unit tests against it
I have two class:
OpportunityLineItemTriggers
OpportunityLineItemTriggers_Test
In the developer console, I run the test class of which there are 5 and all of them check out as green. Yet the code coverage remains very low on the class. When I open up the OpportunityLineItemTriggers class and select Code Coverage, it's only showing that it ran one test, and it's the last one in the list.
Has anyone else run into this problem, and if so, how can I get the Code Coverage to be cumulative across all of the tests in the test class?
OpportunityLineItemTriggers
OpportunityLineItemTriggers_Test
In the developer console, I run the test class of which there are 5 and all of them check out as green. Yet the code coverage remains very low on the class. When I open up the OpportunityLineItemTriggers class and select Code Coverage, it's only showing that it ran one test, and it's the last one in the list.
Has anyone else run into this problem, and if so, how can I get the Code Coverage to be cumulative across all of the tests in the test class?
I'll have to look at the two I commented out to see how they are affecting the other unit tests and why they are not showing up as cumulative.
Thanks for the reply.
All Answers
Can you share your trigger and testcode which you haev and it is not covering ?
I'll have to look at the two I commented out to see how they are affecting the other unit tests and why they are not showing up as cumulative.
Thanks for the reply.