@@ -85,6 +85,7 @@ Alternatively, if you want to use Cucumber's JSON formatter, be sure to name the
85
85
- run: |
86
86
mkdir -p /cucumber
87
87
bundle exec cucumber pretty --format json --out /cucumber/tests.cucumber
88
+ when: always
88
89
- store_test_results:
89
90
path: /cucumber
90
91
- store_artifacts:
@@ -104,6 +105,7 @@ project.
104
105
- run: |
105
106
mkdir -p /junit/
106
107
find . -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} /junit/ \;
108
+ when: always
107
109
- store_test_results:
108
110
path: /junit
109
111
- store_artifacts:
@@ -122,6 +124,7 @@ project.
122
124
- run: |
123
125
mkdir -p /junit/
124
126
find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} /junit/ \;
127
+ when: always
125
128
- store_test_results:
126
129
path: /junit
127
130
- store_artifacts:
@@ -143,6 +146,7 @@ A working `.circleci/config.yml` section for testing might look like this:
143
146
command: mocha test --reporter mocha-junit-reporter
144
147
environment:
145
148
MOCHA_FILE: junit/test-results.xml
149
+ when: always
146
150
- store_test_results:
147
151
path: /junit
148
152
- store_artifacts:
@@ -161,6 +165,7 @@ A working `.circleci/config.yml` section for testing might look like the followi
161
165
yarn add ava tap-xunit --dev # or you could use npm
162
166
mkdir -p /reports
163
167
ava --tap | tap-xunit > /reports/ava.xml
168
+ when: always
164
169
- store_test_results:
165
170
path: /reports
166
171
- store_artifacts:
@@ -179,6 +184,7 @@ A working `.circleci/config.yml` test section might look like this:
179
184
- run: |
180
185
mkdir -p /reports
181
186
eslint ./src/ --format junit --output-file /reports/eslint.xml
187
+ when: always
182
188
- store_test_results:
183
189
path: /reports
184
190
- store_artifacts:
@@ -195,6 +201,7 @@ For PHPUnit tests, you should generate a file using the `--log-junit` command li
195
201
- run: |
196
202
mkdir -p /phpunit
197
203
phpunit --log-junit /phpunit/junit.xml tests
204
+ when: always
198
205
- store_test_results:
199
206
path: /phpunit
200
207
- store_artifacts:
@@ -216,7 +223,9 @@ And modify your test command to this:
216
223
- checkout
217
224
- run: bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3
218
225
- run: mkdir rspec
219
- - run: bundle exec rspec --format progress --format RspecJunitFormatter -o rspec/rspec.xml
226
+ - run: |
227
+ bundle exec rspec --format progress --format RspecJunitFormatter -o rspec/rspec.xml
228
+ when: always
220
229
- store_test_results:
221
230
path: rspec
222
231
````
@@ -236,7 +245,9 @@ And modify your test command to this:
236
245
- checkout
237
246
- run: bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3
238
247
- run: mkdir reports
239
- - run: bundle exec rake test TESTOPTS="--ci-dir=./reports":
248
+ - run:
249
+ bundle exec rake test TESTOPTS="--ci-dir=./reports":
250
+ when: always
240
251
- store_test_results:
241
252
path: reports
242
253
````
@@ -262,6 +273,7 @@ A working `.circleci/config.yml` section might look like this:
262
273
environment :
263
274
JUNIT_REPORT_PATH : ./junit/
264
275
JUNIT_REPORT_NAME : test-results.xml
276
+ when : always
265
277
- store_test_results :
266
278
path : /junit
267
279
- store_artifacts :
0 commit comments