Commit 05d6ca57 authored by Callum Attryde's avatar Callum Attryde
Browse files

Merge branch 'matplotlib_testing' into 'develop'

Matplotlib testing

Closes #17

See merge request quantify-os/quantify-scheduler!19
parents e4705ed5 1a56a162
Loading
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -12,7 +12,6 @@ image: python:3.7
# only cache local items.
variables:
  PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
  GIT_SUBMODULE_STRATEGY: recursive

# Pip's cache doesn't store the python packages
# https://pip.pypa.io/en/stable/reference/pip_install/#caching
@@ -40,11 +39,9 @@ stages:
test:
  stage: Test
  script:
    - pip install -e git+https://$GITUSER:$GITPASS@gitlab.com/quantify-os/quantify-core.git@develop#egg=quantify-core
    - pip install -e .
    - pip install -r requirements_dev.txt
    - apt install python3-pyqt5 -y  # install here manually due to issues
    - py.test -s --cov=quantify/ --cov-report xml --cov-report html --cov-report term --cov-config=.coveragerc --color=yes
    - py.test --mpl --mpl-baseline-path=tests/baseline_images -s --cov=quantify/ --cov-report xml --cov-report html --cov-report term --cov-config=.coveragerc --color=yes
  artifacts:
    paths:
      - htmlcov
+12 −1
Original line number Diff line number Diff line
@@ -104,3 +104,14 @@ Before you submit a merge request, check that it meets these guidelines:

Congratulations! Community members will now review your work and suggest any necessary changes. Thank you very much
for your hard work in improving quantify.

Visualization Considerations
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

We use the `mpl <https://github.com/matplotlib/pytest-mpl>`_ extension for pytest to perform some basic verification of visualization output. Please see their documentation for details on usage,
as well as using existing tests for inspiration.

.. note::

    In particular, please ensure any mpl tests have the `style` set to "default"
+1 −0
Original line number Diff line number Diff line
@@ -14,4 +14,5 @@ twine==1.14.0
pytest
pytest-runner
pytest-cov
pytest-mpl
flake8-html
+39.7 KiB
Loading image diff...
+82.2 KiB
Loading image diff...
Loading