2019-05-15 21:54:23 +01:00
|
|
|
# atoum
|
|
|
|
|
|
|
|
> A simple, modern and intuitive unit testing framework for PHP.
|
2025-03-28 05:26:23 +02:00
|
|
|
> More information: <https://atoum.readthedocs.io/en/latest/option_cli.html>.
|
2019-05-15 21:54:23 +01:00
|
|
|
|
2022-06-27 12:23:12 +02:00
|
|
|
- Initialize a configuration file:
|
2019-05-15 21:54:23 +01:00
|
|
|
|
|
|
|
`atoum --init`
|
|
|
|
|
|
|
|
- Run all tests:
|
|
|
|
|
|
|
|
`atoum`
|
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
- Run tests using the specified configuration file:
|
2019-05-15 21:54:23 +01:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
`atoum {{[-c|--configuration]}} {{path/to/file}}`
|
2019-05-15 21:54:23 +01:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
- Run a specific test file:
|
2019-05-15 21:54:23 +01:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
`atoum {{[-f|--files]}} {{path/to/file}}`
|
2019-05-15 21:54:23 +01:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
- Run a specific directory of tests:
|
2019-05-15 21:54:23 +01:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
`atoum {{[-d|--directories]}} {{path/to/directory}}`
|
2019-05-15 21:54:23 +01:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
- Run all tests under a specific namespace:
|
2019-05-15 21:54:23 +01:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
`atoum {{[-ns|--namespaces]}} {{namespace}}`
|
2019-05-15 21:54:23 +01:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
- Run all tests with a specific tag:
|
2019-05-15 21:54:23 +01:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
`atoum {{[-t|--tags]}} {{tag}}`
|
2019-05-15 21:54:23 +01:00
|
|
|
|
|
|
|
- Load a custom bootstrap file before running tests:
|
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
`atoum {{[-bf|--bootstrap-file]}} {{path/to/file}}`
|