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-6j8k/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: 353744090 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: 2780 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.3.3, 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 142 25 82% 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 70 7 90% 47-48, 68-71, 75 dataextraction/Pipeline.py 26 0 100% dataextraction/SparkHelper.py 39 13 67% 41, 58, 64-78, 84 dataextraction/exceptions_util.py 5 3 40% 42-44 dataextraction/main.py 123 18 85% 133-135, 172-183, 195-197 dataextraction/sink/Base.py 8 1 88% 31 dataextraction/sink/CassandraSink.py 78 2 97% 88-89 dataextraction/sink/DefaultSparkSink.py 23 2 91% 52-53 dataextraction/sink/__init__.py 0 0 100% dataextraction/source/Base.py 8 1 88% 31 dataextraction/source/CassandraSource.py 29 29 0% 22-76 dataextraction/source/DefaultSparkSource.py 23 2 91% 49-50 dataextraction/source/InfluxSource.py 52 1 98% 90 dataextraction/source/__init__.py 0 0 100% dataextraction/tmgr_logger.py 21 0 100% dataextraction/transform/Base.py 8 1 88% 32 dataextraction/transform/DefaultSparkTransform.py 9 0 100% dataextraction/transform/SQLTransform.py 28 8 71% 54-57, 68-71 dataextraction/transform/__init__.py 0 0 100% --------------------------------------------------------------------------------- TOTAL 692 113 84% Coverage HTML written to dir htmlcov Coverage XML written to file coverage.xml Required test coverage of 30% reached. Total coverage: 83.67% ======================== 38 passed, 1 warning in 5.35s =========================