You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: jekyll/_cci2/test.md
+29-14Lines changed: 29 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -52,30 +52,45 @@ Orbs are available for mobile testing, browser testing, load testing, and code c
52
52
## Store test data
53
53
{: #store-test-data }
54
54
55
-
Results from testing can be saved in CircleCI by adding the following steps within a job:
55
+
Results from testing can be saved in CircleCI in two different ways.
56
56
57
-
### `store_test_results`
58
-
{: #store-test-results }
57
+
* Use the `store_test_results` step
58
+
59
+
```yaml
60
+
steps:
61
+
... # Steps to build and test your application
62
+
- store_test_results:
63
+
path: test-results
64
+
```
59
65
60
-
This step uploads and stores test results and also enables access to a summary within the CircleCI web app.
66
+
This step uploads and stores test results, and also enables direct access to output from failed tests on the **Tests** tab of a job in the web app.
61
67
62
-
More details on `store_test_results` can be found in the [Configuring CircleCI]({{ site.baseurl }}/2.0/configuration-reference#storetestresults) reference.
68
+
More details on `store_test_results` can be found in the [Configuring CircleCI]({{ site.baseurl }}/2.0/configuration-reference#storetestresults) reference.
63
69
64
-
#### Test Insights
65
-
{: #test-insights }
70
+
* Store test results as artifacts
71
+
72
+
Test results can also be stored as artifacts using the `store_artifacts` step.
66
73
67
-
When test results are stored, test analytics also become available on the **Tests** tab of the **Insights** page in the web app. Metrics for flaky tests, tests with the lowest success rates, and slow tests help you identify opportunities to optimize pipelines as well as further improve your testing strategy.
74
+
```yaml
75
+
steps:
76
+
... # Steps to build and test your application
77
+
- store_artifacts:
78
+
path: test-results
79
+
destination: junit
80
+
```
81
+
82
+
Results can later be accessed or downloaded as files via the **Artifacts** section of a job in the CircleCI web app.
68
83
69
-
More information is available in the [Test Insights]({{ site.baseurl }}/2.0/insights-tests) guide.
84
+
More details on `store_artifacts` can be found in the [Configuring CircleCI]({{ site.baseurl }}/2.0/configuration-reference#storeartifacts) reference. You can also read more in the [Storing Build Artifacts]({{ site.baseurl }}/2.0/artifacts) guide.
70
85
71
-
### `store_artifacts`
72
-
{: #store-artifacts }
86
+
For more detailed examples of storing test data with different testing frameworks, refer to the [Collecting Test Data]({{ site.baseurl }}/2.0/collect-test-data) document.
73
87
74
-
Test results can also be stored as artifacts. Results can later be accessed or downloaded as files via the **Artifacts** section of a job in the CircleCI web app.
88
+
## Test Insights
89
+
{: #test-insights }
75
90
76
-
More details on `store_artifacts` can be found in the [Configuring CircleCI]({{ site.baseurl }}/2.0/configuration-reference#storeartifacts) reference. You can also read more in the [Storing Build Artifacts]({{ site.baseurl }}/2.0/artifacts) guide.
91
+
When test results are stored, test analytics also become available on the **Tests** tab of the **Insights** page in the web app. Metrics for flaky tests, tests with the lowest success rates, and slow tests help you identify opportunities to optimize pipelines as well as further improve your testing strategy.
77
92
78
-
For examples of storing test data with different testing frameworks, refer to the [Collecting Test Data]({{ site.baseurl }}/2.0/collect-test-data) document.
93
+
More information is available in the [Test Insights]({{ site.baseurl }}/2.0/insights-tests) guide.
0 commit comments