diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..cd03256 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,2 @@ +[run] +omit=venv/* \ No newline at end of file diff --git a/.drone.yml b/.drone.yml index e92eb5b..6a8baef 100644 --- a/.drone.yml +++ b/.drone.yml @@ -35,6 +35,15 @@ steps: - pip3 install --cache-dir='./.pipcache' -r requirements.txt - pytest test.py +- name: coverage + image: python:3.8 + environment: + PRODUCER_REDIS: cache + commands: + - pip3 install --cache-dir='./.pipcache' coverage + - coverage run -m pytest test.py + - coverage report -m + - name: integration_test image: python:3.8 environment: diff --git a/.gitignore b/.gitignore index cf3c132..25e1abb 100644 --- a/.gitignore +++ b/.gitignore @@ -131,3 +131,4 @@ dmypy.json #Pycharm .idea/ *.iml +.coverage \ No newline at end of file