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

chore: set AVA options #780

Merged
merged 1 commit into from Oct 13, 2017
Merged

chore: set AVA options #780

merged 1 commit into from Oct 13, 2017

Conversation

nfischer
Copy link
Member

@nfischer nfischer commented Oct 6, 2017

This sets 2 AVA options:

  • serial: same behavior as the CLI flag, which this replaces
  • powerAssert: if an assert fails, it will inspect all objects involved in
    the failed assert. This causes readability issues if t.falsy(shell.error())
    breaks, since it inspects all of shell (which is way too large).

AVA options are a little easier to manage than CLI options (we only update one
place instead of 2 in package.json).

This sets 2 AVA options:

 * `serial`: same behavior as the CLI flag, which this replaces
 * `powerAssert`: if an assert fails, it will inspect all objects involved in
   the failed assert. This causes readability issues if `t.falsy(shell.error())`
   breaks, since it inspects all of `shell` (which is way too large).

AVA options are a little easier to manage than CLI options (we only update one
place instead of 2 in `package.json`).
@codecov-io
Copy link

codecov-io commented Oct 6, 2017

Codecov Report

Merging #780 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #780   +/-   ##
=======================================
  Coverage   95.39%   95.39%           
=======================================
  Files          33       33           
  Lines        1237     1237           
=======================================
  Hits         1180     1180           
  Misses         57       57

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c889075...9e8e878. Read the comment docs.

Copy link
Contributor

@freitagbr freitagbr left a comment

Choose a reason for hiding this comment

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

LGTM. I'd rather have verbose test output (with powerAssert) than too little information to debug with.

@nfischer
Copy link
Member Author

The output is still improved over previous AVA output (it's pretty good). It's just catastrophically verbose with the powerAssert option set, just because shell is a massive object...

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

Successfully merging this pull request may close these issues.

None yet

3 participants