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

qunitjs / qunit / 14236576190
91%

Build:
DEFAULT BRANCH: main
Ran 03 Apr 2025 06:39AM 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

03 Apr 2025 06:38AM UTC coverage: 90.446%. Remained the same
14236576190

push

github

web-flow
Docs: Write "Test lifecycle" page and add diagram

== Test lifecycle ==

* New diagram!

* New example demonstrating module options being copied to context.

== QUnit.module § Hooks ==

* Rewrite to be more example-driven.

* Move existing examples inline, and simplify examples a lot.

Move low-level ordering details to the new "Test lifecycle" page.
For most readers these are a technically-worded distraction that
underminss the naturally correct intuition one would otherwise assume,
and wrongly give the impression that there is something unique or
complicated here.

The way QUnit works is comparable to other test frameworks, both
those that came before (e.g. PHPUnit, Python unittest), and those
that followed (e.g. Jasmine, Mocha).

Besides, most projects tend to define tests with 0 or 1 hooks,
where ordering or inheritence isn't observable. Even when a larger
ecosystem, like Ember or MediaWiki, is involved, their global hooks
and utilities work as expected without contributors needing to be
aware of where they come from. It just works!

== QUnit.module § Options ==

Promote the shorter object literal "method" syntax (ES6).

== QUnit.module § Examples ==

* "Async hook callback", moved inline.

* "Hooks on nested modules", moved to Test lifecycle page.

* "Hooks via module options", moved inline.

* "Using the test context", moved QUnit.test page, with a copy
  on the Test lifecycle page as well.

* "Only run a subset of tests"
  - rename to "Skip a module",
  - re-arrange to lead with "QUnit.module.skip" instead of obscure
    "todo" and "only".
  - add new example for `QUnit.module.if()`.

Closes https://github.com/qunitjs/qunit/issues/1358.

Co-authored-by: FND <fnd@localhost.localdomain>
Co-authored-by: jdittrich <d_jan@ymail.com>

1865 of 2062 relevant lines covered (90.45%)

3523.35 hits per line

Jobs
ID Job ID Ran Files Coverage
1 14236576190.1 17 Jun 57224 04:10PM UTC 37
90.45
GitHub Action Run
Source Files on build 14236576190
  • Tree
  • List 37
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 04764651 on github
  • Prev Build on main (#14233181890)
  • Next Build on main (#14254339385)
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