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
GhanashyamGhanashyam 

No testMethods error

Hi,
I created a package and included two apex classes in it. When I tried to upload I am getting an error "No testMethods found in the selected Apex code for the package". Not sure how to handle this error. Please let me know how to proceed.

Thanks,
Ganesh

kriiyerkriiyer
I think it expects unit test code for the Apex methods that you have. Try uploading it once you write testmethods for the code.
 
 
Krishnan
GhanashyamGhanashyam
Thanks Krishnan. It worked when I added testmethods:)