Skip to content
Snippets Groups Projects
Unverified Commit d5c71fff authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

fix unit tests

parent 500d6d9b
No related branches found
No related tags found
No related merge requests found
Pipeline #62114 failed with stages
in 11 seconds
...@@ -9,13 +9,44 @@ stress_test: ...@@ -9,13 +9,44 @@ stress_test:
alias: rabbitmq alias: rabbitmq
before_script: before_script:
- python setup.py install - python setup.py install
- coverage run --append -m compile_definitions
script: script:
- coverage run -m stress_tests - coverage run --append -m stress_tests
- COOLAMQP_FORCE_SELECT_LISTENER=1 coverage run --append -m stress_tests - COOLAMQP_FORCE_SELECT_LISTENER=1 coverage run --append -m stress_tests
after_script:
- mv .coverage .coverage.stress
artifacts:
paths:
- ".coverage.stress"
unittest:
stage: test
services:
- name: rabbitmq:3-management
alias: rabbitmq
before_script:
- coverage run --append -m compile_definitions
script:
- coverage run --append -m nose2 -vv
after_script:
- mv .coverage .coverage.units
artifacts:
paths:
- ".coverage.units"
calc_coverage:
stage: build
dependencies:
- unittest
- stress_test
script:
- coverage combine
- coverage xml - coverage xml
- coverage report - coverage report
coverage: /TOTAL.*\s+(\d+\%)/ coverage: /TOTAL.*\s+(\d+\%)/
pages: pages:
image: zoo.smok.co/build/build:latest image: zoo.smok.co/build/build:latest
stage: build stage: build
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment