Skip to content

Commit

Permalink
[DOP-13277] Collect coverage results
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-pedchenko committed Mar 7, 2024
1 parent bc6f58f commit 7854b3a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,4 @@ jobs:
run: find reports -type f -exec mv '{}' reports \;

- name: Generate coverate reports
run: |
root_path=$(dirname $(realpath $0))
coverage combine --rcfile=tests/.coveragerc
coverage xml --rcfile=tests/.coveragerc -o $root_path/reports/coverage.xml -i
run: ./combine_coverage.shi
23 changes: 23 additions & 0 deletions syncmaster/tests/config/.coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[run]
branch = true
omit = tests/*
parallel = true
data_file = reports/.coverage

[report]
exclude_lines =
pragma: no cover
def __repr__
if self.debug:
if settings.DEBUG
raise AssertionError
raise NotImplementedError
if __name__ == .__main__.:
if TYPE_CHECKING:
class .*\bProtocol\):
@(abc\.)?abstractmethod
if pyspark_version
spark = SparkSession._instantiatedSession
if log.isEnabledFor(logging.DEBUG):
if sys.version_info
"def downgrade\\(\\)"

0 comments on commit 7854b3a

Please sign in to comment.