Generating a Trend Report (Quality Analytics)
Using Quality Analytics API, you can generate a report that shows coverage over time.
If you need to generate a trend report, you can reuse the following sample code to generate a report and get the URL to view it.
Please checkout SeaLights API Reference to see the full and latest API syntax available.
Script Dependencies
jq
curl
Script Configuration
Variable | Required | Type | Default | Description |
---|---|---|---|---|
DOMAIN | ✔ | string | ❌ | The domain for your SeaLights account lab. |
SL_API_TOKEN | ✔ | string | ❌ | An API token for your lab (generated in the settings tab of the web app) |
Script Output
The output of the script is written to:
report.url
https://<DOMAIN>/quality-analytics/trend-report/single/<REPORT_ID>;from_public_api=true
Generating a Coverage Trend Report
Coverage Trend report allows the user to select test stages from a single application and see aggregated data over time or over reference builds.
This report will show:
Selected test stages overall and modified coverage (aggregated, and broken down per test stage)
Entire build coverage and modified coverage (aggregated across all test stages, optional additional chart element)
Number of methods and modified methods (optional additional chart element)
More information about the Coverage Trend report can be found here: Coverage Trend Report