Replies: 2 comments 4 replies
-
I'm reluctant to add configuration magic through environment variables. Configuration files (the JS ones) do have access to |
Beta Was this translation helpful? Give feedback.
-
Nice idea. It works, but is a bit awkward because the subdirectories have package.json files with ava configuration so I need to explicitly specify |
Beta Was this translation helpful? Give feedback.
-
I have a need to invoke the same tests differently in the same CI setup; sometimes using the default reporter and sometimes using TAP. This precludes the possibility of using configuration files, and the particular setup involves automatic invocation in subdirectories in a way that makes varying arguments impractical.
But environment variables are passed down fully, so it would be very convenient if the executable understood e.g.
AVA_TAP
as indicating that thetap
setting should be on unless overridden by an argument. And fortunately, this is extremely convenient with the yargs library already used by cli.js—basically as simple as.env('AVA')
to support all arguments.Beta Was this translation helpful? Give feedback.
All reactions