Skip to content

Commit 40c2897

Browse files
committed
Edits per review
1 parent 6ba31c4 commit 40c2897

File tree

1 file changed

+29
-14
lines changed

1 file changed

+29
-14
lines changed

jekyll/_cci2/test.md

Lines changed: 29 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -52,30 +52,45 @@ Orbs are available for mobile testing, browser testing, load testing, and code c
5252
## Store test data
5353
{: #store-test-data }
5454

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.
5656

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+
```
5965

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.
6167

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.
6369

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.
6673

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.
6883

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.
7085

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.
7387

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 }
7590

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.
7792

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.
7994

8095
## Next steps
8196
{: #next-steps }

0 commit comments

Comments
 (0)