name: code run_id: commands[0] env LANG: C.UTF-8 env HOME: /home/jenkins env PATH: /w/workspace/aiml-fw-athp-data-extraction-tox-sonarqube/.tox/code/bin:/opt/pyenv/bin:/tmp/venv-rJa5/bin:/opt/pyenv/shims:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin env PYTHONHASHSEED: 3121826863 env PIP_DISABLE_PIP_VERSION_CHECK: 1 env PYTHONIOENCODING: utf-8 env cd: /w/workspace/aiml-fw-athp-data-extraction-tox-sonarqube/tests env TOX_ENV_NAME: code env TOX_WORK_DIR: /w/workspace/aiml-fw-athp-data-extraction-tox-sonarqube/.tox env TOX_ENV_DIR: /w/workspace/aiml-fw-athp-data-extraction-tox-sonarqube/.tox/code env VIRTUAL_ENV: /w/workspace/aiml-fw-athp-data-extraction-tox-sonarqube/.tox/code metadata pid: 2756 cwd: /w/workspace/aiml-fw-athp-data-extraction-tox-sonarqube allow: /w/workspace/aiml-fw-athp-data-extraction-tox-sonarqube/.tox/code/bin/*:git cmd: pytest --cov-report term-missing --cov-report xml --cov-report html --cov-fail-under=30 --junitxml=/tmp/tests.xml --cov=/w/workspace/aiml-fw-athp-data-extraction-tox-sonarqube/dataextraction/ exit_code: 0 ============================= test session starts ============================== platform linux -- Python 3.10.6, pytest-8.2.1, pluggy-1.5.0 cachedir: .tox/code/.pytest_cache rootdir: /w/workspace/aiml-fw-athp-data-extraction-tox-sonarqube plugins: cov-5.0.0 collected 38 items test/test_DefaultSparkSource.py ... [ 7%] test/test_cassandrasink.py .. [ 13%] test/test_confighelper.py ....... [ 31%] test/test_defaultsparksink.py .. [ 36%] test/test_defaultsparktransform.py . [ 39%] test/test_influxsource.py .... [ 50%] test/test_main.py .......... [ 76%] test/test_pipeline.py ...... [ 92%] test/test_tmgr_logger.py ... [100%] =============================== warnings summary =============================== .tox/code/lib/python3.10/site-packages/flask_api/renderers.py:5 /w/workspace/aiml-fw-athp-data-extraction-tox-sonarqube/.tox/code/lib/python3.10/site-packages/flask_api/renderers.py:5: DeprecationWarning: '_request_ctx_stack' is deprecated and will be removed in Flask 2.3. from flask.globals import _request_ctx_stack -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ---------------------- generated xml file: /tmp/tests.xml ---------------------- ---------- coverage: platform linux, python 3.10.6-final-0 ----------- Name Stmts Miss Cover Missing --------------------------------------------------------------------------------- dataextraction/ConfigHelper.py 143 25 83% 55, 71-73, 84-85, 99, 102-103, 114-115, 144-146, 159, 161-163, 172-173, 182-183, 213, 218-219 dataextraction/FeatureEngineeringFactory.py 71 7 90% 47-48, 68-71, 75 dataextraction/Pipeline.py 27 0 100% dataextraction/SparkHelper.py 40 13 68% 41, 58, 64-78, 84 dataextraction/exceptions_util.py 5 3 40% 42-44 dataextraction/main.py 124 18 85% 133-135, 172-183, 195-197 dataextraction/sink/Base.py 9 1 89% 31 dataextraction/sink/CassandraSink.py 79 2 97% 88-89 dataextraction/sink/DefaultSparkSink.py 24 2 92% 52-53 dataextraction/sink/__init__.py 0 0 100% dataextraction/source/Base.py 9 1 89% 31 dataextraction/source/CassandraSource.py 30 30 0% 19-76 dataextraction/source/DefaultSparkSource.py 24 2 92% 49-50 dataextraction/source/InfluxSource.py 53 1 98% 90 dataextraction/source/__init__.py 0 0 100% dataextraction/tmgr_logger.py 22 0 100% dataextraction/transform/Base.py 9 1 89% 32 dataextraction/transform/DefaultSparkTransform.py 10 0 100% dataextraction/transform/SQLTransform.py 29 8 72% 54-57, 68-71 dataextraction/transform/__init__.py 0 0 100% --------------------------------------------------------------------------------- TOTAL 708 114 84% Coverage HTML written to dir htmlcov Coverage XML written to file coverage.xml Required test coverage of 30% reached. Total coverage: 83.90% ======================== 38 passed, 1 warning in 5.23s =========================