test — Run the project’s unit tests¶
Run the Sense Core unittest suite from the CLI. By default it discovers
test_*.py files under src/s6; you can also target specific tests by dotted
name.
Usage¶
# Discover and run all tests under src/s6
conda run -n torch s6 test
# Run a specific test class or method by dotted path
conda run -n torch s6 test s6.utils.test_sync_controller.TestSyncControllerClientInit.test_init_no_trailing_slash
How it works¶
Adds the repository
src/folder tosys.path.Uses
unittestdiscovery withpattern="test_*.py"andstart_dir=src/.If names are provided, loads only the specified tests by dotted name.
Exits with a non-zero status code on failure, which makes it suitable for CI.