You need to sign in to do that
Don't have an account?
babu Balagani
Test Classes in Developer Console
Hi,
My test classes are appearing in codecoverage box in developer console.
Previously I used to see only classes in codecoverage box , but now test classes are appearing. And showing Work_Test as 0%.
My Class is Work.
Test Class is Work_Test.
Both were appering in codecoverage box.
My test classes are appearing in codecoverage box in developer console.
Previously I used to see only classes in codecoverage box , but now test classes are appearing. And showing Work_Test as 0%.
My Class is Work.
Test Class is Work_Test.
Both were appering in codecoverage box.
You have to click run test to show code coverege.And need to add annotation '@isTest' at top before class signature.example and for the test method add the keyword 'testMethod'.example:
make sure all these things.and click run test.
You should add "@isTest" at the beginning of your test class so that it will be identified as a test class and not a regular class.
If this answers your question, please mark this as the Best Answer for this post, so that others can benefit from this post.
Thanks,
Shashank
I fallowed all these things.
@isTest
private class HelloWorldTestClass {
static testMethod void validateHelloWorld() {
even though my test classes are appearing in code coverage box.
If you added @isTest annotation then it didn't show in the code coverage class list.Try this In test tab of developer console click the 'clear all test data' and then click 'run all tests'