Automated Reports
Proactive detection of regressions in tests performance
✨ Currents Automated Reports helps teams to proactively identify regressions in test performance and take an action:
Prevent problems that go unnoticed for weeks
Reduce the waste of CI resources caused by failed or flaky tests
Avoid your team's frustration from rerunning unreliable and flaky tests again and again
An unwanted change in a test performance can go unnoticed for a long time, especially for larger teams where multiple contributors change the tests often.
When a duration, flakiness, or failure rate change, it can often pass days or weeks before the regression in performance can be noticed. Meanwhile, teams waste time waiting for CI test results to appear, dealing with flaky, non-reliable, or often failing results.
When you integrate your Cypress or Playwright tests suite with Currents, we will start tracking the following metrics:
The failure rate for each spec and test
Spec files and individual test duration
Spec files and individual tests' flakiness rate
With automated reports sent directly to your inbox, you can quickly identify the most expensive tests that waste CI resources and frustrate your team.
Items with the highest duration
Items with the highest flakiness rate
Items with the highest failure rate
![](https://docs.currents.dev/~gitbook/image?url=https%3A%2F%2F3745692499-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FqmFDEiUa9mr11LUlxDnt%252Fuploads%252FgWMTBC3Fh4cYUkEIhGM6%252Fautomated-reports-001.png%3Falt%3Dmedia%26token%3Dfd18d6ee-388d-4aff-8227-f5fb58fd1996&width=768&dpr=4&quality=100&sign=3d75a5ee&sv=1)
In addition, the report includes spec files and tests that showed a decline in performance compared to the previous period (usually a week):
Specs / tests with the most significant increase in duration
Specs / tests with the most significant increase in failure rate
Specs / tests with the most significant increase in flakiness rate
![](https://docs.currents.dev/~gitbook/image?url=https%3A%2F%2F3745692499-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FqmFDEiUa9mr11LUlxDnt%252Fuploads%252F6boqW2xysdjNRipCwjDj%252Fautomated-reports-002.png%3Falt%3Dmedia%26token%3D6f69f898-4d4a-40ca-8dd1-f52bb88a2696&width=768&dpr=4&quality=100&sign=ac57ad10&sv=1)
Enabling Automated Reports
To enable the reports open the Automated Reports section in the org menu.
![](https://docs.currents.dev/~gitbook/image?url=https%3A%2F%2F3745692499-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FqmFDEiUa9mr11LUlxDnt%252Fuploads%252F36nVW31v0kUQhTKs9dcU%252Fcurrents-2023-03-07-16.29.58%2525402x.png%3Falt%3Dmedia%26token%3D5c325597-d129-479f-923f-4fdd44b95daf&width=768&dpr=4&quality=100&sign=5be7b9f0&sv=1)
You will then be able to configure the report for each project within the organization.
Click “Enable/Disable” to activate the report for the project.
Add the emails of report recipients.
Add a comma-separated list of tags - only records matching the filter will be included in the report.
Add a comma-separated list of author emails - only records matching the filter will be included in the report.
Add a comma-separated list of branches - only records matching the filter will be included in the report.
Select the preferred time and day for sending the report. The report will be sent weekly on the selected day / time.
Click “Save” to apply the changes.
Use Send Test Report section to send a preview of a report for the selected period.
![](https://docs.currents.dev/~gitbook/image?url=https%3A%2F%2F3745692499-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FqmFDEiUa9mr11LUlxDnt%252Fuploads%252FaewxurEBtZmKIJGmDPG0%252FScreenshot%25202023-10-18%2520at%252022.32.04.png%3Falt%3Dmedia%26token%3Dbd439fc1-abae-465c-abaa-1b5e19da78b9&width=768&dpr=4&quality=100&sign=8624dcab&sv=1)
Report Structure
The report structure includes essential data about the report, summaries of overall items recorded during the period, a section focused on individual cypress spec files, and another section focused on individual cypress tests. The report also shows items with the most significant changes in metrics during the reported period compared to the previous period.
Header
Essential data - the dates, organization, project details, and filters applied.
Summary
Review of overall items recorded during the period: runs and tests.
Runs Performance
Both metrics contain a changing trend, indicating how the metrics changed compared to the previous period.
The Average Run Duration of +8m 52s means that the duration of the average runs increased.
Success Rate of +3% means that the success rate increased compared to the previous period.
![](https://docs.currents.dev/~gitbook/image?url=https%3A%2F%2F3745692499-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FqmFDEiUa9mr11LUlxDnt%252Fuploads%252F781FbAr5kJHorySJnAEH%252Fheader%25402x.png%3Falt%3Dmedia%26token%3D36df1e07-f012-43d6-9032-7c6eb23ffd5a&width=768&dpr=4&quality=100&sign=ecaa0c1e&sv=1)
Spec Files Performance
Spec Files Performance section focuses on individual cypress spec files, detecting the worst-performing spec files in your suite based on the executions recorded during the reporting period.
Each line item has the following format:
Spec File | Metric |
---|---|
<Spec file name> - a link to the detailed performance view for the spec file | The metric value calculated for the reported period |
Top 3 Failing Spec Files
It presents the files with the highest failure rate. The failure rate is determined by the formula
Failed Executions / Overall Executions.
TheFailed Execution
status is described on the Spec File Status documentation.Having spec files with a high failure rate can have a negative impact on the overall development process, increase the risk of regression, and negatively affect confidence in the codebase.
Top 3 Slowest Spec Files
It presents the files with the longest duration. Break down those tests to reduce the overall duration of your runs with parallelization.
Top 3 Flaky Spec Files
It presents the files with the highest flakiness rate. The flakiness rate is determined by the formula
Flaky Executions / Overall Executions.
AFlaky Execution
has at least 1 test detected as flaky, according to the Flaky Tests Documentation.
![](https://docs.currents.dev/~gitbook/image?url=https%3A%2F%2F3745692499-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FqmFDEiUa9mr11LUlxDnt%252Fuploads%252FE3n3pX3YIhfI01qxY9mD%252Fspec-files-performance.png%3Falt%3Dmedia%26token%3D267d91b5-73ab-4bb8-a457-d2419a38ab5f&width=768&dpr=4&quality=100&sign=e3f83dee&sv=1)
Tests Performance
Tests Performance section focuses on individual cypress tests and shows the worst performers based on the executions reported within the period.
Each line item has the following format:
Test Title | Metric |
---|---|
<Test Title> - a link to the detailed performance view for the test | The metric value calculated for the reported period |
Top 3 Failing Tests
It presents he tests with the highest failure rate. The failure rate is determined by the formula
Failed Executions + Skipped / Overall Executions.
TheFailed
andSkipped
statuses are determined according to the Test Status Documentation.Top 3 Slowest Tests
It presents the tests with the longest average duration. Break down those tests to reduce the overall duration of your runs with parallelization.
Top 3 Flaky Tests
It presents the tests with the highest flakiness rate. The flakiness rate is determined by the formula
Flaky Executions / Overall Executions.
AFlaky
execution ihas at least 1 test detected as flaky, according to the Flaky Tests Documentation.
![](https://docs.currents.dev/~gitbook/image?url=https%3A%2F%2F3745692499-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FqmFDEiUa9mr11LUlxDnt%252Fuploads%252FvxetlyRmfjpJAceMolQP%252Ftests-files-performance.png%3Falt%3Dmedia%26token%3Db5bf995e-e5e2-4c29-bf8b-09e22face16f&width=768&dpr=4&quality=100&sign=e06f7b03&sv=1)
Trends Section
The “Trends” section shows the items with the most significant changes in metrics during the reported period compared with the previous period. Currents will detect the items with the highest negative change and list them in the report. For example, when a test’s duration, flakiness rate, or failure drastically increases during the reported week, it will appear in the “Trends” section.
![](https://docs.currents.dev/~gitbook/image?url=https%3A%2F%2F3745692499-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FqmFDEiUa9mr11LUlxDnt%252Fuploads%252FdneXD5Nqd0iAo5jOQ6AD%252Fcurrents-2023-03-26-01.06.35%25402x.png%3Falt%3Dmedia%26token%3D21b06826-400a-4950-92b9-3848e56fb35b&width=768&dpr=4&quality=100&sign=96adbf41&sv=1)
Each line item has the following format:
Spec File / Test Title | Metric | Change |
---|---|---|
Spec name / Test title - a link to the detailed performance view for the spec file | The metric value calculated for the reported period | The change in the metric’s value compared to the previous period |
Clicking on the item (spec file name or test title) will open the Currents dashboard with a detailed performance view for further investigation.
Spec File / Test Failures Trends
Lists the spec files with the most significant increase in their failure rate. For example:
Spec File / Test Title Failure Rate Change item
29%
+23%
It means: the item had a failure rate of 29% during the reported period (usually a week), which is a 23% increase in its failure rate compared to the previous week.
Spec File / Test Duration Trends
Lists the spec files with the most significant increase in their average duration. For example:
Spec File / Test Title Avg. Duration Change item
20.4s
+16.7s
It means: the item had an average duration of 20.4 seconds during the reported period, which is a +16.7s increase compared to the previous week.
Spec File / Test Flakiness Trends
Lists the spec files with the most significant increase in their flakiness rate. For example:
Spec File / Test Title Flakiness Rate Change item
61%
+57%
It means: the item had a flakiness rate of 61% during the reported period and is a +57% increase, i.e., the flakiness rate increased from 4% to 61% compared to the previous week.
Last updated