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

qunitjs / qunit / 9923786962
90%

Build:
DEFAULT BRANCH: main
Ran 14 Jul 2024 12:10AM UTC
Jobs 1
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

14 Jul 2024 12:06AM UTC coverage: 89.626% (+0.1%) from 89.518%
9923786962

push

github

Krinkle
HTML Reporter: Restore "running" class on test item

== Background

In QUnit 1.16.0, as part of https://github.com/qunitjs/qunit/issues/677,
commit 168b048c68 changed the testStart() callback to no longer always
create `qunit-test-output-TESTID` with class "running", but instead
eagerly create them ahead of time via a QUnit.begin() handler (without
the "running" class), and then during testStart() set the class to
"running", or lazily create the item then.

This introduced a bug where, late-defined tests lack the "running"
class. This bug then later spread to all items as we now treat all
tests as late-defined.

In QUnit 2.8.0, as part of https://github.com/qunitjs/qunit/pull/1323,
this was attempted to be restored, but it added it to a different
element, namely `#qunit-testresult-display` which from what I could
find in our history, never previously carried this class. This might've
been done by acciddent, but in any case, let's keep that.

== What

* Restore this to simplify the CSS, and makes it more developer-friendly
  to theme QUnit by not having to list all statuses, and/or having to
  use a direct-child selector like `#qunit-tests > li` to reliably select
  test items (and not other lists like the assertion list).

* For back-compat, keep the running class on `qunit-testresult-display`
  but move it to onBegin() since there is no reason to set this again
  and again on every test since it never changes.

* Document these bits in the recently created "Theme API" section.

14 of 15 new or added lines in 1 file covered. (93.33%)

19 existing lines in 1 file now uncovered.

1823 of 2034 relevant lines covered (89.63%)

2612.07 hits per line

Jobs
ID Job ID Ran Files Coverage
1 9923786962.1 27 Aug 56503 06:25AM UTC 0
89.63
GitHub Action Run
Source Files on build 9923786962
Detailed source file information is not available for this build.
  • Back to Repo
  • 15511205 on github
  • Prev Build on main (#9923318833)
  • Next Build on main (#9930166136)
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