Composer allow running scripts, as said in defining scripts.
So, I'm trying to run some spec tests with it.
{
"scripts": {
"test": "./vendor/davedevelopment/dspec/bin/dspec"
},
"require-dev": {
"esperance/esperance": "dev-master",
"davedevelopment/dspec": "dev-master"
}
}
It runs fine, but there is no color output, and for spec tests this difficults the reading.
How can I run the scripts but keep the original colored output?
Use the --ansi
param.
"test": "./vendor/davedevelopment/dspec/bin/dspec --ansi"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With