hardis:org:test:apex
Description
Run apex tests in Salesforce org
If following configuration is defined, it will fail if apex coverage target is not reached:
- Env
APEX_TESTS_MIN_COVERAGE_ORG_WIDE
or.sfdx-hardis
propertyapexTestsMinCoverageOrgWide
- Env
APEX_TESTS_MIN_COVERAGE_ORG_WIDE
or.sfdx-hardis
propertyapexTestsMinCoverageOrgWide
You can override env var SFDX_TEST_WAIT_MINUTES to wait more than 60 minutes.
This command is part of sfdx-hardis Monitoring and can output Grafana, Slack and MsTeams Notifications.
Parameters
Name | Type | Description | Default | Required | Options |
---|---|---|---|---|---|
apiversion | option | override the api version used for api requests made by this command | |||
debug -d |
boolean | Activate debug mode (more logs) | |||
json | boolean | format output as json | |||
loglevel | option | logging level for this command invocation | warn | trace debug info warn error fatal |
|
skipauth | boolean | Skip authentication check when a default username is required | |||
targetusername -u |
option | username or alias for the target org; overrides default target org | |||
testlevel -l |
option | Level of tests to apply to validate deployment | RunLocalTests | NoTestRun RunSpecifiedTests RunLocalTests RunAllTestsInOrg |
|
websocket | option | Websocket host:port for VsCode SFDX Hardis UI integration |
Examples
$ sfdx hardis:org:test:apex