Skip to content

Latest commit

 

History

History

tests

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Testing

Tests are run with the pyTest/

Test structure

  • Tests marked with @pytest.mark.skipci will not run by the continuous integration tests

Setup

Pytest can be installed using one of the following options.

Install along with all development requirements (recommended):

pip install -r dev-requirements.txt

Install using PIP:

pip install pytest

Install using Conda:

conda install pytest

Running tests

  1. Run all tests
pytest 
  1. Run tests in test_basic.py
pytest tests/test_basic.py
  1. Run tests decorated with @pytest.mark.favorites decorator
pytest -m favorites
  1. Run all tests and print out stdout
pytest -s
  1. Run all tests which are run on the CI server
pytest -v -m "not skipci"