Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add options to choose the output format #751

Closed
armandabric opened this issue Apr 12, 2016 · 5 comments
Closed

Add options to choose the output format #751

armandabric opened this issue Apr 12, 2016 · 5 comments

Comments

@armandabric
Copy link

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?

@sindresorhus
Copy link
Member

What command did you use to run AVA?

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

@armandabric
Copy link
Author

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
Copy link
Member

@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
Copy link
Author

Adding -e CI=true works.

Thanks for your help !

@novemberborn
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants