Add options to choose the output format
armandabric opened this issue · 5 comments
armandabric commented
sindresorhus commented
What command did you use to run AVA?
Instead of adding an option we'll just fix the auto-detection.
armandabric commented
My command to run the test is simple: NODE_ENV='test' ava --require babel-register --require babel-polyfill --require ./tests/helpers/world.js tests/units/**/*
The difficulties is that I execute it in a docker container: docker exec -it test-runner npm test
novemberborn commented
@Spy-Seth AVA checks environment variables to auto-detect your CI. You'll have to forward it to your docker container:
docker exec -it -e CI test-runner npm test
(Like 80% sure on the -e
shorthand)
Alternatively you can force verbose output:
docker exec -it -test-runner 'npm test -- --verbose'
armandabric commented
Adding -e CI=true
works.
Thanks for your help !
novemberborn commented
@Spy-Seth no worries. It's something that should be documented (#404).