From 4f198e2f75b8dffb9d06e5145df8fe170736af31 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 10 Oct 2023 19:24:59 +0000 Subject: [PATCH] Update coverage on Readme --- README.md | 2 +- python/idsse_common/test/coverage.txt | 50 +++++++++++++++++++++++++++ python/idsse_common/test/pytest.xml | 1 + 3 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 python/idsse_common/test/coverage.txt create mode 100644 python/idsse_common/test/pytest.xml diff --git a/README.md b/README.md index c18aa3ec..b0081642 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![Pytest](https://github.com/NOAA-GSL/idss-engine-commons/actions/workflows/run-tests.yml/badge.svg?branch=main)](https://github.com/NOAA-GSL/idss-engine-commons/actions/workflows/run-tests.yml) [![Lint with pylint](https://github.com/NOAA-GSL/idss-engine-commons/actions/workflows/linter.yml/badge.svg)](https://github.com/NOAA-GSL/idss-engine-commons/actions/workflows/linter.yml) -Coverage
Coverage Report
FileStmtsMissCoverMissing
python/idsse_common/idsse/common
   __init__.py00100% 
   aws_utils.py868080 7%
   config.py684848 29%
   grid_proj.py534949 8%
   json_message.py222222 0%
   log_util.py404040 0%
   path_builder.py157152152 3%
   publish_confirm.py153153153 0%
   rabbitmq_utils.py161616 0%
   utils.py111103103 7%
   validate_schema.py393232 18%
TOTAL7456957% 
+Coverage
Coverage Report
FileStmtsMissCoverMissing
idsse/common
   __init__.py00100% 
   aws_utils.py8655 94%
   config.py6888 88%
   grid_proj.py530100% 
   json_message.py222222 0%
   log_util.py404040 0%
   path_builder.py1574141 74%
   publish_confirm.py155155155 0%
   rabbitmq_utils.py161616 0%
   utils.py9499 90%
   validate_schema.py390100% 
TOTAL73029659% 
## Overview diff --git a/python/idsse_common/test/coverage.txt b/python/idsse_common/test/coverage.txt new file mode 100644 index 00000000..d04d0fbc --- /dev/null +++ b/python/idsse_common/test/coverage.txt @@ -0,0 +1,50 @@ +============================= test session starts ============================== +platform linux -- Python 3.11.5, pytest-7.4.2, pluggy-1.3.0 +rootdir: /home/runner/work/idss-engine-commons/idss-engine-commons/python/idsse_common +plugins: cov-4.1.0 +collected 112 items + +test/test_aws_utils.py .................. [ 16%] +test/test_config.py ............ [ 26%] +test/test_grid_proj.py ............. [ 38%] +test/test_path_builder.py ..................... [ 57%] +test/test_utils.py ........................ [ 78%] +test/test_validate_schema.py ........................ [100%] + +=============================== warnings summary =============================== +test/test_validate_schema.py:14 +test/test_validate_schema.py:14 + /home/runner/work/idss-engine-commons/idss-engine-commons/python/idsse_common/test/test_validate_schema.py:14: DeprecationWarning: Importing Validator directly from the jsonschema package is deprecated and will become an ImportError. Import it from jsonschema.protocols instead. + from jsonschema import Validator + +idsse/common/validate_schema.py:16 +idsse/common/validate_schema.py:16 + /home/runner/work/idss-engine-commons/idss-engine-commons/python/idsse_common/idsse/common/validate_schema.py:16: DeprecationWarning: Importing Validator directly from the jsonschema package is deprecated and will become an ImportError. Import it from jsonschema.protocols instead. + from jsonschema import Validator, FormatChecker, RefResolver + +idsse/common/validate_schema.py:16 +idsse/common/validate_schema.py:16 + /home/runner/work/idss-engine-commons/idss-engine-commons/python/idsse_common/idsse/common/validate_schema.py:16: DeprecationWarning: jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need. + from jsonschema import Validator, FormatChecker, RefResolver + +-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html +- generated xml file: /home/runner/work/idss-engine-commons/idss-engine-commons/python/idsse_common/test/pytest.xml - + +---------- coverage: platform linux, python 3.11.5-final-0 ----------- +Name Stmts Miss Cover +----------------------------------------------------- +idsse/common/__init__.py 0 0 100% +idsse/common/aws_utils.py 86 5 94% +idsse/common/config.py 68 8 88% +idsse/common/grid_proj.py 53 0 100% +idsse/common/json_message.py 22 22 0% +idsse/common/log_util.py 40 40 0% +idsse/common/path_builder.py 157 41 74% +idsse/common/publish_confirm.py 155 155 0% +idsse/common/rabbitmq_utils.py 16 16 0% +idsse/common/utils.py 94 9 90% +idsse/common/validate_schema.py 39 0 100% +----------------------------------------------------- +TOTAL 730 296 59% + +======================= 112 passed, 6 warnings in 0.97s ======================== diff --git a/python/idsse_common/test/pytest.xml b/python/idsse_common/test/pytest.xml new file mode 100644 index 00000000..e0186f8f --- /dev/null +++ b/python/idsse_common/test/pytest.xml @@ -0,0 +1 @@ + \ No newline at end of file