+ Start a Discussion

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".



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.