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

qunitjs / qunit / 9556355311
90%

Build:
DEFAULT BRANCH: main
Ran 17 Jun 2024 11:39PM UTC
Jobs 1
Files 34
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

17 Jun 2024 03:21PM UTC coverage: 89.263% (+0.4%) from 88.856%
9556355311

push

github

Krinkle
Core: Expose QUnit.urlParams, fix preconfig conflict, set initial explicitly

* Always expose QUnit.urlParams

  Previously this API was left undefined in non-browser environments.
  To make usage easier and safer in environment-agnostic code,
  export the object always, with it remaining an empty object if
  globalThis.window.location is undefined.

* Fix broken preconfig for built-in urlConfig options.

  When the preconfig feature was first introduced in QUnit 2.1.0 (2016),
  it did not work for certain config keys. In urlparams.js we
  unconditionally re-assign some keys. Thus, even if preconfig sets
  one of these, and QUnit.urlParams does not, we'd effectively set it
  to undefined, wiping away the preconfig value.

  - QUnit.config.moduleId
  - QUnit.config.testId
  - QUnit.config.module
  - QUnit.config.filter

* Fix missing "unknown" option in custom menu defined by urlConfig.

  `let selection = false;` was scoped incorrectly in the urlConfig loop
  in html.js, causing it to only work for the first custom menu.

  When registering two or more custom menus, any non-first menu with
  an unknown value would be missing `<option selected disabled>c</option>`
  in the dropdown menu.

* Apply type validation for built-in curlConfig options. This fixes
  cases where, via urlParams, one could set a core config key to an
  invalid value (wrong type):

  - ?hidepassed=true (was string "true", now bool true)
    Previously, hidepassed=false was treated as truthy, which will now
    be treated as false/off.

    Invalid values like ?hidepassed=x will now also be treated as false.

    Since hidepassed=1 is not unheard of in the wild, this is
    now a supported boolean value.

  - ?filter=one&filter=two (was array, now undefined)
    Previously this would inject an invalid value, causing a runtime
    TypeError due to internal code calling String methods on it.

* Set the initial default values of `hidepassed`, `noglobals`, and
  `notrycatch` explicitly ... (continued)

29 of 30 new or added lines in 4 files covered. (96.67%)

1 existing line in 1 file now uncovered.

1829 of 2049 relevant lines covered (89.26%)

2167.3 hits per line

Jobs
ID Job ID Ran Files Coverage
1 9556355311.1 28 May 56432 12:45PM UTC 0
89.26
GitHub Action Run
Source Files on build 9556355311
Detailed source file information is not available for this build.
  • Back to Repo
  • 57c2dbcf on github
  • Prev Build on main (#9541051097)
  • Next Build on main (#9573539441)
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