test — Run the project’s unit tests

Run Python unittest discovery against the src/ tree, or run specified tests by dotted name.

Usage

# Discover and run all tests under src/
s6 test

# Run a specific test or class by dotted path
s6 test s6.utils.test_entrypoint_loader.TestEntryPointLoader

How it works

  • Adds the repository src/ folder to sys.path and uses unittest discovery (pattern='test_*.py').

  • If names are provided, loads and runs only the specified tests.

  • Exits with a non-zero status code on failure, suitable for CI.