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

qunitjs / qunit / 3035
89%
main: 90%

Build:
Build:
LAST BUILD BRANCH: 2.x
DEFAULT BRANCH: main
Ran 20 Nov 2020 09:34PM UTC
Jobs 1
Files 30
Run time 4s
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
3035

push

travis-ci-com

web-flow
Core: Fix test counter bug when nesting invalid test functions (#1515)

This doesn't affect end-users, since nesting QUnit.test() calls
isn't supported. In our own unit tests, we assert early bail out
behaviour for passing invalid arguments to QUnit.test(), and naturally
we do this from inside another QUnit.test() call.

The previous code left bailed out *after* we had already registered
the test and handed out references to reporting code. This meant
that it would count this as two tests of which one had an unknown
state, which js-reporters casts to a failed test.

This wasn't caught in CI because:

- When we run the test via the HTML Reporter and via the
  test-on-node task, we report it via the legacy QUnit.testDone()
  and QUnit.done() which didn't pay attention to this half-known
  test.

- And we don't currently run this test via the QUnit CLI
  (if we did, it would be failing)

Fixes https://github.com/qunitjs/qunit/issues/1514

1167 of 1419 branches covered (82.24%)

2073 of 2317 relevant lines covered (89.47%)

350.38 hits per line

Jobs
ID Job ID Ran Files Coverage
6 3035.6 (NPM_SCRIPT=coveralls) 20 Nov 2020 09:34PM UTC 0
89.47
Travis Job 3035.6
Source Files on build 3035
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #3035
  • 2bf39f74 on github
  • Prev Build on master (#3024)
  • Next Build on master (#3041)
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