Skip to content

Commit

Permalink
Add code coverage report and moved scripts outside of src (#66)
Browse files Browse the repository at this point in the history
* Add code coverage report and moved scripts outside of src

* Add pytest-cov package installation

* Removed slow trace method
  • Loading branch information
karan6181 authored Nov 1, 2022
1 parent 86a9b95 commit 6fe0c0c
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[run]
branch = True
omit = streaming/text/convert/enwiki/mds/*,streaming/text/convert/enwiki/tfrecord/*

[report]
show_missing = True
precision = 2
exclude_lines = raise NotImplementedError.*
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ reportUnusedCoroutine = "error"
# Pytest
[tool.pytest.ini_options]
# By default, do not run remote tests
addopts = "--codeblocks --strict-markers -m 'not daily and not remote' -ra --tb=native"
addopts = "--cov=streaming --cov-fail-under=50 --codeblocks --strict-markers -m 'not daily and not remote' -ra --tb=native"

markers = [
# For distributed testing
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
'pre-commit>=2.18.1,<3',
'pytest==7.2.0',
'pytest_codeblocks==0.16.1',
'pytest-xdist>=2',
'pytest-cov>=4,<5',
'toml==0.10.2',
'yamllint==1.28.0',
]
Expand Down

0 comments on commit 6fe0c0c

Please sign in to comment.