Skip to content

Latest commit

 

History

History
55 lines (41 loc) · 1.18 KB

README.md

File metadata and controls

55 lines (41 loc) · 1.18 KB

Running Tests

Prerequisites

Running tests require the following dependencies to be installed:

Running all tests

To run style checks and unit tests for both python 2 and python 3:

make test

Running only style checks

The following commands run flake8 style checks on the /benchmarks directory.

To run style checks using python 3:

make lint

Running only unit tests

Unit tests can be run using the commands below.

make unit_test3

To run unit tests using python 3:

make unit_test

Running a selection of unit tests

  • Run one complete test directory or file:
    TESTFILES=<test_file_path> tox -e py3-py.test
    
  • Run one test in a file:
    TESTFILES=<test_file_path>::<test_name> tox -e py3-py.test
    
  • Run all tests containing a substring:
    TESTOPTS="-k <substring> --no-cov" tox -e py3-py.test