atoum standard edition is an opinionated packaging of atoum. It contains features that are not considered best practices in atoum's core, but could be useful and used by many developers. It is also aimed to ease the integration on ci environments and leverage the composer.json file to provide some automatic configuration.
You just have to require atoum/standard-edition
via composer. You don't need to install atoum manually.
composer require --dev atoum/standard-edition
- yml and php configuration for atoum,
- build-in IDE completion for your tests,
- build-in testing of protected methods,
- simplified integration in your ci environments,
- ...
See below for the full list of features.
For each of these features, the best is to read the documentation for each of them. Just remember they are ready to use, so you don't need to configure it in the configuration file or whatever.
- override the visibility of method to test protected methods (see atoum/visibility-extension)
- configure atoum via a YAML file instead of a PHP file see (atoum/config-extension) (but you can continue to use the PHP file if you want a more customizable configuration)
- you IDE will provide you completion when writting your tests thanks to the stubs
- you can configure atoum to generate a branch and path coverage report thanks to atoum/reports-extension
- you can activate telemetry reports thanks to atoum/telemetry-extension
To generate an Xunit report, add the environnement variable XUNIT_REPORT_PATH
with the path to the xUnit file to generate as value.
If the directory were the file should be written does not exists, il will be created.
If you want to participate in the telemetry project, you just need to set the TELEMETRY_ENABLED
environnment variable.
You can set multiple values
- 0 : no report will be sent (default)
- 1 : send report anonymously
- 2 : send report with your vendor name (from your composer.json file)
- 3 : send report with both vendor and projet name (from your composer.json file)
If the autoloop extension is installed, files/folders defined in the autoload section of your composer.json file will be automaticly watch.
You must manually install the autoloop extension (because some of its dependancies may cause conflicts on your project).
- atoum
- atoum's documentation
- atoum-config-extension
- atoum-reports-extension
- atoum-visibility-extension
- atoum stubs
- atoum-autoloop-extension
- atoum-telemetry-extension
atoum standard edition is released under the MIT License. See the bundled LICENSE file for details.