- Add
QueryHelper.setGlobalRetryOptions()
static method.- Use to change the retry behaviour of queries across all instances.
- Exclude
@testSetup
methods fromApexTestResult
queries.
- Set minimum timeout to 30s on polling requests.
- Add timeout to each poll call during test run.
- Uses
statusPollIntervalMs
as the timeout value.
- Uses
- Test failure logging now limits at 4+ failures in the same class.
- Format millisecond/second time values in reports as numbers.
- For JSON:
"time": "12030 ms"
is now"time": 12030
. - For JUnit XML:
value="12.03 s"
is nowvalue="12.03"
.
- For JSON:
- Add elapsed time to test run status logging.
- Add
rerunExecutionTime
value to main test reports.- This is sum of all the re-run
RunTime
s. Similar totestExecutionTime
.
- This is sum of all the re-run
- Remove spaces in class time CSV report.
- Add output of class time report to JSON.
- Optimise missing test re-run request payload when requesting all tests in a class.
-
BREAKING:
AsyncTestRunner
now does not re-throw errors. Instead it returns aTestRunnerResult
type which includes all test results retrieved and optional error. -
Adds
ts-retry-promise
as dependency.- Replacing uses of
@salesforce/core
'sPollingClient
. - All errors are now caught and retried, instead of just network errors.
- Errors and retries will be logged.
- Replacing uses of
-
Reworked
TestAll
command to return partial result, no longer potentially undefined. -
Added retries to many external request promises.
- Currently fixed 3 additional attempts made over ~2 minutes.
-
Added inline logging of test failures as they happen.
-
Fix rounding error with test status logging, show completed number.
-
TestAborter
no longer waits after marking aborted tests.
- Update to
@salesforce/core
v4 and other supporting deps.
- Fix
@salesforce/apex-node
including commitlint by relaxing required version.
- Removes module override for
@salesforce/core
. - Upgrade core dependencies, including:
@apexdevtools/sfdx-auth-helper
@salesforce/core
@salesforce/apex-node
- Supports webpack bundling.
- Add file extension back to reruns report.
- Fix bug with missed test detection.
- Fix report output crash on tests that were rerun.
- Update rerun report format and remove file extension.
- To avoid being recognised as a test result file.
- Return
TestRunSummary
forTestAll
. - Add properties to result summary:
reruns
is a list of before/after test results.runIds
is all the job Ids involved in a run.
- Add new
TestallOptions
:disableCoverageReport
to disable print out of coverage when enabled for org.rerunOption
to select different rerun behaviour, possible values:'pattern'
- default, rerun tests based on pattern file entries.'limit'
- will rerun all failed tests only when undermaxErrorsForReRun
limit.'all'
- rerun all failed tests.
- Add report generator to detail reruns to a file.
- Catch and skip reruns on error.
- Add support for collecting code coverage data
- Refactor OutputGenerator interface to accept a path and filename as param
- Add Cove Coverage generator that generates
locv.info
file
- Throw the error from
Testall.run()
instead of just logging. - Add
TestError
type.- Thrown in all local error cases, external errors may still pass through.
- Use built-in
Error().name
property to identify its type. - Has
kind
property with enum typeTestErrorKind
General
- 0Timeout
- 1Query
- 2
- Use tooling api for most sobject queries.
- BREAKING: BaseLogger no longer accepts a
Connection
in constructor.- All logging methods are now synchronous.
- Has new optional
logDirPath
parameter to set a common location for log files. logOutputFile()
will now usepath.resolve
withlogDirPath
or given parameter.
- Add retry feature to
QueryHelper
, used inTestall
during post-testgatherResultsWithRetry
. - Update logging status message to include pass count.
- Update logging for pattern based retries with before/after explanation.
- Fix unhandled promise rejection on failed polling query.
- Fix cancellation token not passed to test reruns.
- Export
DEFAULT_TEST_RERUN_PATTERNS
fromTestResultMatcher
.
- Add support for test rerun patterns in
.apexTestRerun
.
- Fix misreporting of failed tests.
- Add code coverage support.
- Add abort when tests already in progress.
- Apply xml escaping to values used in unit test results.
- Add callback
onPoll
for retrieving test stats.
- Expose
ResultCollector
. - Add callbacks for
onRunStarted
. - Modify run abort to return the IDs of cancelled tests.
- Export logger types.
- Reduce symbol chunk size.
- Initial release.