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

avajs / ava / 3137
95%
master: 42%

Build:
Build:
LAST BUILD BRANCH: magic-assert
DEFAULT BRANCH: master
Ran 10 Mar 2017 10:16AM UTC
Jobs 3
Files 37
Run time 1min
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

pending completion
3137

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%)

460.64 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3137.1 10 Mar 2017 10:16AM UTC 0
95.26
Travis Job 3137.1
2 3137.2 10 Mar 2017 10:16AM UTC 0
95.26
Travis Job 3137.2
3 3137.3 10 Mar 2017 10:17AM UTC 0
95.26
Travis Job 3137.3
Source Files on build 3137
  • 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 Repo
  • Travis Build #3137
  • 5b00d84c on github
  • Next Build on refactor-assertions (#3140)
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

© 2025 Coveralls, Inc