Skip to content

Commit b4f740d

Browse files
committed
store test results take 2
1 parent 5ce313e commit b4f740d

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.circleci/config.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,19 @@ jobs:
3333
- run:
3434
name: Pytest Test Cases
3535
command: | # Run test suite, uses NUCLEUS_TEST_API_KEY env variable
36-
poetry run coverage run -m pytest
36+
mkdir test_results
37+
poetry run coverage --include=nucleus/* run -m pytest --junitxml=test_results/junit.xml
3738
poetry run coverage report
3839
poetry run coverage html
3940
4041
- store_test_results:
4142
path: htmlcov
43+
44+
- store_test_results:
45+
path: test_results
46+
47+
- store_artifacts:
48+
path: test_results
4249
pypi_publish:
4350
docker:
4451
- image: cimg/python:3.6

README.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -169,14 +169,9 @@ pre-commit install
169169
```
170170

171171
**Best practices for testing:**
172-
(1). Before running pytest, please make sure to authenticate into AWS, since some of the unit tests rely on AWs resources:
172+
(1). Please run pytest from the root directory of the repo, i.e.
173173
```
174-
gimme_okta_aws_creds
175-
```
176-
177-
(2). Please run pytest from the root directory of the repo, i.e.
178-
```
179-
pytest tests/test_dataset.py
174+
poetry pytest tests/test_dataset.py
180175
```
181176

182177

0 commit comments

Comments
 (0)