Loading .gitlab/ci/ubuntu_python.gitlab-ci.yml +8 −6 Original line number Diff line number Diff line Loading @@ -44,7 +44,8 @@ test:ubuntu_python: before_script: - !reference [.retrieve_deps:apt, script] - source venv/bin/activate - python -m pip install unittest-xml-reporting pytest # - python -m pip install unittest-xml-reporting pytest - python -m pip install pytest - which python - python -m pip list - > Loading @@ -55,7 +56,8 @@ test:ubuntu_python: - cd ${CI_PROJECT_NAME} # Run on discovery all tests located in project/unit_tests/python and discard the stdout # only to show the errors/warnings and the results of the tests - python -m xmlrunner discover -s unit_tests/ -v -b --output-file xmlrunner-results.xml # - python -m xmlrunner discover -s unit_tests/ -v -b --output-file xmlrunner-results.xml - pytest unit_tests/ -v --junitxml=xmlrunner-results.xml artifacts: reports: Loading Loading
.gitlab/ci/ubuntu_python.gitlab-ci.yml +8 −6 Original line number Diff line number Diff line Loading @@ -44,7 +44,8 @@ test:ubuntu_python: before_script: - !reference [.retrieve_deps:apt, script] - source venv/bin/activate - python -m pip install unittest-xml-reporting pytest # - python -m pip install unittest-xml-reporting pytest - python -m pip install pytest - which python - python -m pip list - > Loading @@ -55,7 +56,8 @@ test:ubuntu_python: - cd ${CI_PROJECT_NAME} # Run on discovery all tests located in project/unit_tests/python and discard the stdout # only to show the errors/warnings and the results of the tests - python -m xmlrunner discover -s unit_tests/ -v -b --output-file xmlrunner-results.xml # - python -m xmlrunner discover -s unit_tests/ -v -b --output-file xmlrunner-results.xml - pytest unit_tests/ -v --junitxml=xmlrunner-results.xml artifacts: reports: Loading