name: py3 run_id: commands[0] env LANG: C.UTF-8 env HOME: /home/jenkins env PATH: /w/workspace/com-pylog-tox-sonarqube/mdclogpy/.tox/py3/bin:/opt/pyenv/bin:/tmp/venv-NTNY/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: 2698377888 env PIP_DISABLE_PIP_VERSION_CHECK: 1 env PYTHONIOENCODING: utf-8 env TOX_ENV_NAME: py3 env TOX_WORK_DIR: /w/workspace/com-pylog-tox-sonarqube/mdclogpy/.tox env TOX_ENV_DIR: /w/workspace/com-pylog-tox-sonarqube/mdclogpy/.tox/py3 env VIRTUAL_ENV: /w/workspace/com-pylog-tox-sonarqube/mdclogpy/.tox/py3 env TOX_PACKAGE: /w/workspace/com-pylog-tox-sonarqube/mdclogpy/.tox/.tmp/package/1/mdclogpy-1.1.4.tar.gz metadata pid: 2844 cwd: /w/workspace/com-pylog-tox-sonarqube/mdclogpy allow: /w/workspace/com-pylog-tox-sonarqube/mdclogpy/.tox/py3/bin/* cmd: pytest --junitxml xunit-results.xml --cov mdclogpy --cov-report xml --cov-report term-missing --cov-report html --cov-fail-under=70 exit_code: 0 ============================= test session starts ============================== platform linux -- Python 3.10.6, pytest-8.2.1, pluggy-1.5.0 cachedir: .tox/py3/.pytest_cache rootdir: /w/workspace/com-pylog-tox-sonarqube/mdclogpy plugins: cov-5.0.0 collected 22 items tst/test_Logger.py ................. [ 77%] tst/test_mdclogpy.py ..... [100%] =============================== warnings summary =============================== tst/test_Logger.py:138 /w/workspace/com-pylog-tox-sonarqube/mdclogpy/tst/test_Logger.py:138: DeprecationWarning: invalid escape sequence '\ ' self.logger.info('\ and "') tst/test_Logger.py:143 /w/workspace/com-pylog-tox-sonarqube/mdclogpy/tst/test_Logger.py:143: DeprecationWarning: invalid escape sequence '\ ' self.assertEqual(logs[0]["msg"], '\ and "') tst/test_Logger.py::TestMdcLog::test_that_config_map_is_monitored_correctly /w/workspace/com-pylog-tox-sonarqube/mdclogpy/.tox/py3/lib/python3.10/site-packages/_pytest/threadexception.py:77: PytestUnhandledThreadExceptionWarning: Exception in thread Thread-1 (monitor_loglevel_change_handler) Traceback (most recent call last): File "/opt/pyenv/versions/3.10.6/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/opt/pyenv/versions/3.10.6/lib/python3.10/threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "/w/workspace/com-pylog-tox-sonarqube/mdclogpy/mdclogpy/Logger.py", line 233, in monitor_loglevel_change_handler self.parse_file() File "/w/workspace/com-pylog-tox-sonarqube/mdclogpy/mdclogpy/Logger.py", line 215, in parse_file src = open(self.filename,'r') FileNotFoundError: [Errno 2] No such file or directory: '/tmp/log' warnings.warn(pytest.PytestUnhandledThreadExceptionWarning(msg)) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html - generated xml file: /w/workspace/com-pylog-tox-sonarqube/mdclogpy/xunit-results.xml - ---------- coverage: platform linux, python 3.10.6-final-0 ----------- Name Stmts Miss Cover Missing ---------------------------------------------------- mdclogpy/Logger.py 134 10 93% 83-87, 95, 189-190, 241-243 mdclogpy/__init__.py 29 4 86% 42, 82, 87, 92 ---------------------------------------------------- TOTAL 163 14 91% Coverage HTML written to dir htmlcov Coverage XML written to file coverage.xml Required test coverage of 70% reached. Total coverage: 91.41% ======================== 22 passed, 3 warnings in 0.26s ========================