Skip to content

Commit 1843275

Browse files
authored
Merge pull request #39 from per1234/pytest
libraries/compile-examples: switch to using pytest for unit testing framework
2 parents 8648c35 + c86ceb4 commit 1843275

File tree

4 files changed

+298
-292
lines changed

4 files changed

+298
-292
lines changed

.github/workflows/libraries_compile-examples.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ jobs:
3232
run: |
3333
export PYTHONPATH="$GITHUB_WORKSPACE/libraries/compile-examples/compilesketches:$GITHUB_WORKSPACE/libraries/compile-examples/reportsizetrends"
3434
pytest "$GITHUB_WORKSPACE/libraries/compile-examples/compilesketches/tests"
35-
python -m unittest discover "$GITHUB_WORKSPACE/libraries/compile-examples/reportsizetrends/tests"
35+
pytest "$GITHUB_WORKSPACE/libraries/compile-examples/reportsizetrends/tests"

reportsizetrends/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
google-auth~=1.11
22
google-api-python-client~=1.7
3+
pytest==5.4.1

reportsizetrends/tests/pytest.ini

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[pytest]
2+
filterwarnings =
3+
error
4+
ignore::DeprecationWarning
5+
ignore::ResourceWarning
6+
7+
markers =
8+
slow: marks tests as slow (deselect with '-m "not slow"')

0 commit comments

Comments
 (0)