Add code coverage config and expand test suite

Adds .coveragerc configuration file to control coverage analysis settings.
Expands test suite with additional unit tests for AbstractProcessor,
SubjectMapper, CitationBuilder, LicenseProcessor, PIFinder, and
MetadataProcessor classes.

Updates README with comprehensive testing documentation, including
information about current code coverage (53%) and instructions for
running tests with coverage analysis.
This commit is contained in:
Alexander Minges 2025-05-20 14:02:30 +02:00
parent 2c88a76f4e
commit 1c84cae93b
Signed by: Athemis
SSH key fingerprint: SHA256:TUXshgulbwL+FRYvBNo54pCsI0auROsSEgSvueKbkZ4
3 changed files with 227 additions and 2 deletions

23
.coveragerc Normal file
View file

@ -0,0 +1,23 @@
[run]
source = doi2dataset
omit =
*/tests/*
*/docs/*
setup.py
conf.py
__init__.py
[report]
exclude_lines =
pragma: no cover
def __repr__
if self.debug:
raise NotImplementedError
if __name__ == .__main__.:
pass
raise ImportError
except ImportError
def __str__
[html]
directory = htmlcov