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.

Is there any way of solving this bug? Basically, whenever I try to run a test (Username > Developer Console) I can run the tests and all but when I get to the part where I want to check the red & blue highlights, it simply doesn't show these and my allTests seperator goes down to 0%.

This is quite annoying and I can't test my classes through eclipse since it takes wayyyyyy too too long each time I run the tests, not to mention it is visually way more complex.

Best regards.

share|improve this question
3  
Shot in the dark - try clear all existing test results first (Setup->Develop->Apex Test Execution->View History->Clear Test Results), and then run your tests. I have found that sometimes this fixes test result weirdness. If this works i'll add it as an answer. –  Jason Clark Feb 18 at 17:10
    
Thank you very much, it seems to work, at least for now! –  Rui Rocha Feb 18 at 17:15
add comment

2 Answers 2

up vote 5 down vote accepted

Try clearing all existing test results first (Setup->Develop->Apex Test Execution->View History->Clear Test Results), and then run your tests. I have found that sometimes this fixes test result weirdness.

share|improve this answer
add comment

I had this same issue in a sandbox on the Spring '14 release. I'm not entirely sure what fixed it, because I tried a lot of different things.

From within the Developer Console:

  • Cleared the Test Data (Test > Clear Test Data)
  • Cleared the Log Panel (Debug > Clear > Log Panel)
  • Edited the Test Class (just added a comment and saved)

From the Salesforce interface:

  • Recompiled all classes (Setup > Build > Develop > Apex Classes > Compile All Classes link)
  • Double checked that all of the Test Data was Cleared (Setup > Build > Develop > Apex Test Execution > View Test History link > Clear Test Data button)

Then I ran the Test again (Developer Console > Test > New Run > Selected Test Class > Run), and everything seemed to work normally, and the red/blue highlighting showed up.

share|improve this answer
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.