FiftyOne currently uses both unittest and pytest to implement its tests.
File | Description |
---|---|
unittests/*.py |
Unit tests checking expected behavior of FiftyOne |
benchmarking/*.py |
Tests related to benchmarking the performance of FiftyOne |
intensive/*.py |
Computationally intensive tests |
isolated/*.py |
Tests that must be run in a separate pytest process to avoid interfering with other tests |
misc/*.py |
Miscellaneous tests that have not been upgraded to official unit tests |
To run all unit tests, execute:
pytest unittests/
To run a specific test, execute:
pytest unittests/<file>.py
To run a specific test case, execute:
pytest unittests/<file>.py -s -k <test_function_name>
The -s
flag is optional and prints all stdout from the test case.