Skip to content

Commit 0085036

Browse files
authored
Send status code of 1 when unit tests fail (#177)
1 parent 2c46d9f commit 0085036

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.circleci/config.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
. venv/bin/activate
4040
pip install -e git+https://github.com/plotly/dash.git#egg=dash[testing]
4141
export PATH=$PATH:/home/circleci/.local/bin/
42-
pytest --log-cli-level DEBUG --nopercyfinalize --junitxml=test-reports/dashr.xml tests/integration/
42+
pytest --nopercyfinalize --junitxml=test-reports/dashr.xml tests/integration/
4343
- store_artifacts:
4444
path: test-reports
4545
- store_test_results:
@@ -55,7 +55,7 @@ jobs:
5555
- run:
5656
name: 🔎 Unit tests
5757
command: |
58-
sudo Rscript -e 'testthat::test_dir("tests/")'
58+
sudo Rscript -e 'res=devtools::test("tests/", reporter=default_reporter());df=as.data.frame(res);if(sum(df$failed) > 0 || any(df$error)) {q(status=1)}'
5959
6060
workflows:
6161
version: 2

0 commit comments

Comments
 (0)