function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Tien Le 488Tien 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:
User-added image

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:
User-added image

Thanks in advance for your help.
Tien





 
Best Answer chosen by Tien Le 488
Tien Le 488Tien Le 488
User-added image

All Answers

Tien Le 488Tien Le 488
Apex Testing - Get Started with Apex Unit Tests
https://trailhead.salesforce.com/content/learn/modules/apex_testing/apex_testing_intro
Tien Le 488Tien Le 488
I thought I literally had to do my hands-on challenge on my Dev Org, but I'm seeing a problem there as well:
User-added image
Tien Le 488Tien Le 488
User-added image
This was selected as the best answer
SANDEEP KUMAR 2391SANDEEP KUMAR 2391
Hey Wow... really great article, With lots of information in it. Good luck with your good work. Thanks for this post. Thanks (https://wpgroup.in)
Tien Le 488Tien Le 488
Thank you @Sandeep Kumar 2391, I try to be helpful as I've received so much help on the web from others.  Cheers!  :-)
batek batbatek bat
i think you are coreect but i ave expalianed it too here check this out (https://www.mysimplecorner.com/)
ankit johariankit johari
Thank you for sharing this useful information & good luck for your future.
Reviews on Top (https://www.reviewsontop.com/) Team
Yakshit ChaudharyYakshit Chaudhary
Great Job! and this is such useful info of us. Lots of appreciation from eTaleTeller. Check and read all English Newspaper List (https://www.etaleteller.com/english-newspapers-list-in-india-free-epaper/) for technology articles.
abhishek kumar 812abhishek kumar 812
Kudos, Great work man, good luck man.
Regards,
Abhishek
TechAspirer (https://techaspirer.com/)
Sefire HawkSefire Hawk
Ok now i understand and write something about it in my site TheTechBrother (https://thetechbrother.com). Thanks 
mrferdos mrferdosmrferdos mrferdos
Thank you for some other informative website. www.office.com/setupThe place else may just I get that kind of information written in such a perfect method? I have a venture that I am simply now running on, and I’ve been at the glance out for such info.Office.com/setup
 
stella steffystella steffy
Hey......Thanks for sharing such useful work  Smarttechbuzz.  All The Best for your future.
Tien Le 488Tien Le 488
Yvw. 🙂 Thanks, Tien
lucas brownlucas brown
Hello, Thanks for sharing, I am lucus from Reviewsed.com (https://www.reviewsed.com/), I am a technical writer I will research and will write a technical article on Reviewsed, It may help you.
Binod JhaBinod Jha
This is something very interesting. Thanks, Tien
Binod Jha (https://binodjha.com/)
Angelina PereraAngelina Perera
i think you got it correctly but i have expalianed it too visit (https://travelql.com) to check this out
John Matthews 17John Matthews 17
Thanks for the tips. We have started using salesforce to pull historical data and these tips will be helpful. 
https://flawlessfinejewelry.com team.
John Matthews 17John Matthews 17
Thanks for the tips. We have started using salesforce to pull historical data and these tips will be helpful. 
Hatton Garden Jewellers (https://flawlessfinejewelry.com) team.
Sagar Nagvekar 29Sagar Nagvekar 29
1. Run the test class from any web browser such as Google Chrome.
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.
Manu Laudam CarvalhoManu Laudam Carvalho
Hi there,

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.

User-added image

TestVerifyClass in window Test > New Run