Skip to main content
Tweeted twitter.com/StackSalesforce/status/1355576535600803845
Added image showing errors
Source Link
Rob Cowell
  • 990
  • 1
  • 12
  • 37

Got some unit test failures when I am deploying from sandbox to sandbox.

  • Tests pass in source sandbox
  • Tests pass if I deploy with "NoTestRun" and then run them manually afterwards.

They only fail when I specify "RunLocalTests" as pasrt of the deployment. Says it can't find an applicable approval process - the process definitely exists in the target org and isn't part of the deployment package

Why would a deployment test run be different from a "normal" test run?

Deployment failures

Got some unit test failures when I am deploying from sandbox to sandbox.

  • Tests pass in source sandbox
  • Tests pass if I deploy with "NoTestRun" and then run them manually afterwards.

They only fail when I specify "RunLocalTests" as pasrt of the deployment. Says it can't find an applicable approval process - the process definitely exists in the target org and isn't part of the deployment package

Why would a deployment test run be different from a "normal" test run?

Got some unit test failures when I am deploying from sandbox to sandbox.

  • Tests pass in source sandbox
  • Tests pass if I deploy with "NoTestRun" and then run them manually afterwards.

They only fail when I specify "RunLocalTests" as pasrt of the deployment. Says it can't find an applicable approval process - the process definitely exists in the target org and isn't part of the deployment package

Why would a deployment test run be different from a "normal" test run?

Deployment failures

Rephrased title as a question
Link
Rob Cowell
  • 990
  • 1
  • 12
  • 37

Unit Why would unit test failures only occur during deployment?

Source Link
Rob Cowell
  • 990
  • 1
  • 12
  • 37

Unit test failures only during deployment

Got some unit test failures when I am deploying from sandbox to sandbox.

  • Tests pass in source sandbox
  • Tests pass if I deploy with "NoTestRun" and then run them manually afterwards.

They only fail when I specify "RunLocalTests" as pasrt of the deployment. Says it can't find an applicable approval process - the process definitely exists in the target org and isn't part of the deployment package

Why would a deployment test run be different from a "normal" test run?