dev-master
9999999-devA mutli-format outputter for PhpSpec
MIT
The Requires
- php ^7.0
- phpspec/phpspec ^4.0
Wallogit.com
2017 © Pedro Peláez
A mutli-format outputter for PhpSpec
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., (*1)
In alpha. Sort of works. Development/testing ongoing. Contributions welcome., (*2)
Requires PhpSpec 4 and PHP 7., (*3)
composer require --dev samburns/phpspec-multi-formatter
In your phpspec.yml file:, (*4)
extensions:
"SamBurns\\PhpSpecMultiFormatter\\Extension":
file: 'spec/junit.xml'
Running PhpSpec with the multi-formatter:, (*5)
./vendor/bin/phpspec run --format=multiformatter
Clone the repository and run Composer., (*6)
Run the following command from the project root:, (*7)
./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., (*8)
A mutli-format outputter for PhpSpec
MIT