You need to sign in to do that
Don't have an account?
Tien Le 488
apex test class not showing for Test - New Run - Select Tests pop-up
Hi,
I'm trying to complete the trailhead "" and encountering a challenge. If anyone has any feedback for me on this, I'd appreciate very much.
Added VerifyDate.apxc as I did with TemperatureConverter.apxc. Added TestVerifyDate.apxc (even with VerifyDateTest.apxc) as I did with TemperatureConverterTest.apxc. I verified that those classes exist per screenshot1 below:
I'm supposed to be able to go to Test, select New Run, then with Select Tests pop-up, I'm supposed to see the TestVerifyDate (and/or VerifyDateTest) classes to select and run; however, I'm not seeing those test classes. Why? Even with "[All Namespaces]", they still don't show.
Workaround for now is to run the test suite per instructions earlier in the trailhead.
Reference screenshot2 below:
Thanks in advance for your help.
Tien
I'm trying to complete the trailhead "" and encountering a challenge. If anyone has any feedback for me on this, I'd appreciate very much.
Added VerifyDate.apxc as I did with TemperatureConverter.apxc. Added TestVerifyDate.apxc (even with VerifyDateTest.apxc) as I did with TemperatureConverterTest.apxc. I verified that those classes exist per screenshot1 below:
I'm supposed to be able to go to Test, select New Run, then with Select Tests pop-up, I'm supposed to see the TestVerifyDate (and/or VerifyDateTest) classes to select and run; however, I'm not seeing those test classes. Why? Even with "[All Namespaces]", they still don't show.
Workaround for now is to run the test suite per instructions earlier in the trailhead.
Reference screenshot2 below:
Thanks in advance for your help.
Tien
All Answers
https://trailhead.salesforce.com/content/learn/modules/apex_testing/apex_testing_intro
Reviews on Top (https://www.reviewsontop.com/) Team
Regards,
Abhishek
TechAspirer (https://techaspirer.com/)
Binod Jha (https://binodjha.com/)
https://flawlessfinejewelry.com team.
Hatton Garden Jewellers (https://flawlessfinejewelry.com) team.
2. Open the Developer Console.
3. Select the bottom left tab "Tests" which is between "Logs" and "Checkpoints" tabs.
4. Expand the plus sign shown below to see which test methods have passed.
5. If all test methods have passed, then in Google Chrome refresh the main classes and/or triggers to see their code coverage percentage.
I had the same problem. When I went to Setup > Apex Classes I found out that my test class wasn't saved. However, I was sure that I had clicked 'Save'. Probably, there were some errors in the code which prevented saving it.
Therefore, I would recommend checking whether you can save your code. If it still has an * at the end of the file name like in the screenshot (e.g. "VerifyDateTest.apxc*" it wasn't saved correctly. Once, all errors have been corrected you can save it and then the test class will appear under Test > New Run.