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
dotnet developedotnet develope 

how to test the apex class and deployed in to production.

 

hi all,

i have writtern a apex class for leadconvertion.

when i tested class in eclipse editor it is showing 0% test coverage.

what should i do to solve this issue.

i need any of ur help to deploy to production.

how to write "test method" for this apex class. whether i have to write test method in the same apex class or different class.

ckempckemp


dotnet develope wrote:

hwhen i tested class in eclipse editor it is showing 0% test coverage.

what should i do to solve this issue.





Download the Apex Developer's Guide and read the "Testing and Code Coverage" section on p. 97.


dotnet develope wrote:

how to write "test method" for this apex class. whether i have to write test method in the same apex class or different class.





The test methods are supposed to be in the same class.