Apex Tests
sfp apextests resume
sfp apextests resumeUSAGE
$ sfp apextests resume -o <value> --testrunid <value> [--json] [--loglevel
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL] [--apiversion <value>] [--status-only] [-w
<value>] [--outputdir <value>] [--outputformat raw|dashboard|both] [--environment <value>] [-c]
[--validatepackagecoverage] [-p <value>]
FLAGS
-c, --validateindividualclasscoverage Validate that individual classes have a coverage greater than the minimum
required percentage coverage
-o, --targetusername=<value> (required) Username or alias of the target org.
-p, --coveragepercent=<value> [default: 75] Minimum required percentage coverage, when validating code
coverage
-w, --waittime=<value> Wait time in minutes for test to complete. Use 0 or omit for indefinite wait
--apiversion=<value> Override the api version used for api requests made by this command
--environment=<value> Environment name for dashboard format (defaults to target org alias)
--loglevel=<option> [default: info] logging level for this command invocation
<options: trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL>
--outputdir=<value> [default: .testresults] Directory to write test result files
--outputformat=<option> [default: raw] Output format for test results
<options: raw|dashboard|both>
--status-only Check current status without waiting for completion
--testrunid=<value> (required) The test run ID to resume or monitor (obtained from 'sfp
apextests:trigger --async')
--validatepackagecoverage Validate that the package coverage is greater than the minimum required
percentage coverage
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Resume monitoring or fetch results for a previously triggered Apex test run. Use with --status-only to check current
status without waiting, or without to wait for completion and fetch results.
EXAMPLES
$ sfp apextests:resume -o scratchorg --testrunid 707xx0000000000
$ sfp apextests:resume -o scratchorg --testrunid 707xx0000000000 --status-only
$ sfp apextests:resume -o scratchorg --testrunid 707xx0000000000 -w 30 --jsonsfp apextests trigger
sfp apextests triggerLast updated
Was this helpful?