You need to sign in to do that
Don't have an account?

How to run unmanaged class tests only during sandbox ant deployment?
According to the KB article linked, setting runAllTests to false for production ant deployments will exclude only managed package tests.
Is there a way to run unmanaged code tests only for sandbox ant deployments?
http://help.salesforce.com/apex/HTViewSolution?id=000003620&language=en_US
You can, but it's non-trivial.
As you may now know, setting runAllTests to false will not run any tests in a sandbox, and setting the value to true will run all tests, including managed.
The only way to run the tests you want (i.e. only unmanaged) is to explicitly specify them as follows:
What we actually do is maintain our list of unmanaged tests in a separate manifest and then embed it into our build.xml file as follows:
The content of runTests.xml would look like:
Hopefully this helps.