Skip to content

NoTestRun not allowed in production

Detection

  • String: testLevel of NoTestRun cannot be used in production organizations
  • Applies to: deployment errors

Examples

  • INVALID_OPERATION: testLevel of NoTestRun cannot be used in production organizations

Resolution

A deployment to a production org always runs Apex tests.
- Remove testLevel NoTestRun from the config of the production branch (config/branches/.sfdx-hardis.<branch>.yml): sfdx-hardis uses RunLocalTests by default

Comments