avajs/ava

Add options to choose the output format

armandabric opened this issue · 5 comments

AVA automaticly try to detect the output capabalities to choose the right output formater.

But sometimes it failed to choose the good one. For example here on one of my travis build:

screenshot 2016-04-12 09 17 29

Could you had options to choose the formater?

What command did you use to run AVA?

Instead of adding an option we'll just fix the auto-detection.

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

@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'

Adding -e CI=true works.

Thanks for your help !

@Spy-Seth no worries. It's something that should be documented (#404).