maelstrom-software / maelstrom

Maelstrom is a fast Rust, Go, and Python test runner that runs every test in its own container. Tests are either run locally or distributed to a clustered job runner.
https://maelstrom-software.com/
Apache License 2.0
599 stars 11 forks source link

Support different path to pytest configuration file #405

Open bobbobbio opened 2 months ago

bobbobbio commented 2 months ago

Use Cases My pytest configuration file is stored in some non-standard location and I want to load that one instead of some implicit one.

Acceptance Criteria We have support for the --config-file pytest option with our own new config option called collect-config-file. This option only takes affect when collecting tests and not when running tests in the container.

Implementation Considerations This is a simple forwarding of the CLI option to the --config-file option. We should pass this both during collecting test only. When running tests we are inside the container, and should instead urge users to just put their config file in the container in a default place.

We may need to somehow deal with relative paths.