2025-03-14 21:59:59 -06:00
|
|
|
# atoum
|
|
|
|
|
|
|
|
|
|
> A simple, modern and intuitive unit testing framework for PHP.
|
2025-04-03 20:36:56 -06:00
|
|
|
> More information: <https://atoum.readthedocs.io/en/latest/option_cli.html>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Initialize a configuration file:
|
|
|
|
|
|
|
|
|
|
`atoum --init`
|
|
|
|
|
|
|
|
|
|
- Run all tests:
|
|
|
|
|
|
|
|
|
|
`atoum`
|
|
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
- Run tests using the specified configuration file:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`atoum {{[-c|--configuration]}} {{path/to/file}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
- Run a specific test file:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`atoum {{[-f|--files]}} {{path/to/file}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
- Run a specific directory of tests:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`atoum {{[-d|--directories]}} {{path/to/directory}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
- Run all tests under a specific namespace:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`atoum {{[-ns|--namespaces]}} {{namespace}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
- Run all tests with a specific tag:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`atoum {{[-t|--tags]}} {{tag}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Load a custom bootstrap file before running tests:
|
|
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`atoum {{[-bf|--bootstrap-file]}} {{path/to/file}}`
|