• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

avajs / ava / 3137 / 1
95%
master: 42%

Build:
Build:
LAST BUILD BRANCH: magic-assert
DEFAULT BRANCH: master
Ran 10 Mar 2017 10:16AM UTC
Files 37
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

09 Mar 2017 05:33PM UTC coverage: 95.262%. First build
3137.1

push

travis-ci

novemberborn
Refactor assertions

* Use our own AssertionError class. Now we can track the assertion
rather than abusing the operator field. We can also stop depending on
`core-assert` once we implement `t.throws()` ourselves
* Directly create `AssertionError`s, making it easier to specify the
varying options
* Default the assertion message to an empty string, removing workarounds
in the mini and verbose reporters
* Improve `t.plan()` assertion errors. Specify 'plan' as the assertion,
and use `===` as the operator
* Refactor `t.throws()` and `t.notThrows()`, improving readability and
fixing #1227
* Move knowledge of when to show output into `serialize-error.js`. It
sat kind of awkwardly in `assert.js`
* Always try to format errors in mini and verbose reporters, check
if actual / expected values are available when formatting
* Wrap assertions in `assert.js` for use with the `ExecutionContext`
* Only enhance the power-assert assertions, don't use `empower-core`
to wrap the others
* Remove superfluous `empower-core` 'originalMessage' handling. Our
assertions create `AssertionError`s with the correct message
* Refactor overloaded `Test#_assert()` method. Note that only
`t.throws()` and `notThrows()` are (possibly) asynchronous

906 of 981 branches covered (92.35%)

1989 of 2058 relevant lines covered (96.65%)

153.43 hits per line

Source Files on job 3137.1
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 3137
  • Travis Job 3137.1
  • 5b00d84c on github
  • Next Job for on refactor-assertions (#3140.3)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc