File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -33,12 +33,19 @@ jobs:
33
33
- run :
34
34
name : Pytest Test Cases
35
35
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
37
38
poetry run coverage report
38
39
poetry run coverage html
39
40
40
41
- store_test_results :
41
42
path : htmlcov
43
+
44
+ - store_test_results :
45
+ path : test_results
46
+
47
+ - store_artifacts :
48
+ path : test_results
42
49
pypi_publish :
43
50
docker :
44
51
- image : cimg/python:3.6
Original file line number Diff line number Diff line change @@ -169,14 +169,9 @@ pre-commit install
169
169
```
170
170
171
171
** 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.
173
173
```
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
180
175
```
181
176
182
177
You can’t perform that action at this time.
0 commit comments