atoum / standard-edition
Installs: 2 411
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 3
Forks: 2
Open Issues: 3
Requires
- atoum/atoum: ^3.2
- atoum/config-extension: ^0.3
- atoum/reports-extension: ^3.0
- atoum/stubs: ^2.6
- atoum/telemetry-extension: ^1.0
- atoum/visibility-extension: ^1.3
Requires (Dev)
- friendsofphp/php-cs-fixer: ^1.12
Suggests
- atoum/autoloop-extension: Automatically run your tests in atoum's loop mode when files are changed
This package is auto-updated.
Last update: 2024-11-29 04:57:59 UTC
README
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.
Install it
You just have to require atoum/standard-edition
via composer. You don't need to install atoum manually.
composer require --dev atoum/standard-edition
Features
- 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.
Detailled Features
Features provided by extensions
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
Generate an xUnit report with ease
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.
Participate in the Telemetry project
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)
Automatic configuration of the autoloop extension
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).
Links
- atoum
- atoum's documentation
- atoum-config-extension
- atoum-reports-extension
- atoum-visibility-extension
- atoum stubs
- atoum-autoloop-extension
- atoum-telemetry-extension
Licence
atoum standard edition is released under the MIT License. See the bundled LICENSE file for details.