samburns / phpspec-multi-formatter
A mutli-format outputter for PhpSpec
Installs: 10 358
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^7.0
- phpspec/phpspec: ^4.0
This package is auto-updated.
Last update: 2024-10-24 05:02:49 UTC
README
A library that acts as a facade for two other PhpSpec formatters. Primarily intended for use on Continuous Integration servers. Allows you to use the 'dot formatter' and output a JUnit XML file in a single test run.
State of Development
In alpha. Sort of works. Development/testing ongoing. Contributions welcome.
Use
Requires PhpSpec 4 and PHP 7.
composer require --dev samburns/phpspec-multi-formatter
In your phpspec.yml
file:
extensions: "SamBurns\\PhpSpecMultiFormatter\\Extension": file: 'spec/junit.xml'
Running PhpSpec with the multi-formatter:
./vendor/bin/phpspec run --format=multiformatter
Development
Clone the repository and run Composer.
Run the following command from the project root:
./vendor/bin/phpspec r -c test/sampleapp/phpspec.yml --format=multiformatter
It should create a file called ./test/sampleapp/spec/junit-output/junit.xml
and do 'dot formatter' output at the same
time. If it does, then you haven't broken anything.