This repository packages a Copado quality tool that runs aer test inside Copado infrastructure.
- a Copado function (
run_aer_qif) that downloads and runsaer - a Copado job template + function step to execute
aer test - a static resource bundle (
aer) for "Generate Extension Records" - custom metadata for:
- test tool registration (
aer) - ui sections using
c:aerConfiguration - default quality gate actions:
- after commit (block)
- after promotion (report)
- test tool registration (
- a configurable LWC with options to configure the
aer testexecution:sourceflagsdefault-namespaceversion
- an LWC-based custom result viewer (
c:aerResultViewerPanel) that reads:aer-test-results.xml(junit)aer-coverage.jsonaer-results-summary.jsonand renders a detailed test/coverage summary on the Copado Result record.
- Copado user permissions for quality gates and functions
- Copado packages compatible with function-based quality tools
- deploy this metadata to your org.
- add picklist values:
Extension Configuration > Extension Tool:aerCopado Test Toolglobal value set:aer
- open Copado Extensions, select
aer, click Generate Extension Records. - open Functions and verify the generated function
run aer qif. - verify
copado__Image_Name__cis set tocopado-function-core:v1. - create quality gates using the packaged defaults:
- after commit (block)
- after promotion (report)
- run a test execution and open the generated Result record:
- the custom viewer renders status, test counts, duration, coverage, failures, and attached artifacts.
The configuration is managed in the Copado Extension Configuration settings UI and passed to the function as JSON:
{
"source": "force-app",
"flags": "",
"default-namespace": "",
"version": "latest"
}An aer license key is required to run more than 100 tests at a time. Visit
https://www.octoberswimmer.com/tools/aer/subscribe/ to purchase a license.
To use a licensed version of aer, create a System Property to store the license key:
- navigate to System Properties and click New.
- set API Name to
AER_LICENSE_KEY. - paste your license key in the Value field.
- check Hide Value to protect the key.
- optionally link the property to specific Pipeline or Environment records.
The function includes a parameter that reads {$Global.Property.AER_LICENSE_KEY} and exports it as AER_LICENSE_KEY to the shell environment.
The packaged function uses:
copado-function-core:v1
source cannot be empty: set a non-emptysourcevalue.- version resolution/download failures: verify network access from Copado worker to GitHub releases.