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
Pal2011Pal2011 

Apex Test Execution

Has anyone noticed difference on "Apex Test Execution" after Spring '13 release?

 

Some of my Unit Test classes execute successfully on the eclipse. But, the same classes are failing, when I tried to run them from  "Run AllTest".

 

 

sfdcfoxsfdcfox
This can occur if your test methods use SeeAllData and you query live database information for modification. If two tests attempt to modify the same record at the same time, they will cause a row lock error to occur. Tests are sandboxed from making any changes to the live database, but they are not sandboxed from each other.

Tests in the IDE always run in serial, not parallel, for now. Tests also run in serial when uploading to the AppExchange. This minor difference can cause otherwise unexplained test failures.