Skip to content

Conversation

@numical
Copy link

@numical numical commented May 18, 2019

Command line option to enable even more concise output by not including stack traces in output.
e.g.:

faucet *.test --no-stack
X example
  not ok 3 fail test 1
  not ok 4 fail test 2
# tests 4
# pass  2
# fail  2  

will also look for SHOW_STACK environmental variable
@ljharb ljharb changed the title add --no-stack opion to command line add --no-stack option to command line Sep 22, 2022
});
var opts = {
width: defined(argv.w, argv.width, process.stdout.isTTY ? process.stdout.columns - 5 : 0),
stack: defined(argv.stack, process.env.SHOW_STACK ? process.env.SHOW_STACK === 'true' : true)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

generally it's best to have absence and false be the same - can we invert this to "hideStack" instead?

(altho i do like --no-stack as the CLI arg name)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@ljharb ljharb marked this pull request as draft March 19, 2023 04:59
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

Successfully merging this pull request may close these issues.

3 participants