GitHub - qunitjs/qtap: Run JavaScript unit tests in real browsers, real fast.
Run JavaScript unit tests in real browsers, real fast. - qunitjs/qtap
@nullvoxpopuli.com @erus.dev
That's essentially the idea behind QTap.
github.com/qunitjs/qtap
Airtap and karma-tap came close but neither support HTML, and Airtap also imposes bundling, so you end up coupled to the runner incl debugging.
Watch this space.
Early feedback welcome!
24.06.2025 10:09 — 👍 3 🔁 2 💬 0 📌 0
(How I use) Qunit:
- testem for cli reporter (not qunit)
- (bulilt assets to load (I'd prefer vite's way)
- testem for launching pre-installed browsers (doesn't force installation via npm like like puppeteer does, iirc)
- qunit for test runner
- qunit for test framework
02.06.2025 22:52 — 👍 0 🔁 1 💬 1 📌 0
Imagine a test with global hooks, and a Parent and Child module that use hooks also. The execution order is:
1. Parent module runs the before hook.
2. Every test in the Parent module inherits context from the before hook, and repeats as follows: call global beforeEach, parent beforeEach, the actual test, parent afterEach, and lastly the global afterEach.
3. The Child module inherits context from the Parent before hook, and then runs its own before hook.
4. Every test in the Child module inherits context from this before hook, and repeats as follows: call global beforeEach, parent beforeEach, child beforeEach, the actual test, child afterEach, parent afterEach, and lastly the global afterEach.
Ever wondered how beforeEach works in a unit test framework?
qunitjs.com/lifecycle/
While people generally guess right, this demonstrates that the order is guaranteed, and showcases what's possible when you depend on it.
Thanks to FND, Jan D, and NullVoxPopuli for their help!
#qunit
20.04.2025 18:14 — 👍 2 🔁 1 💬 0 📌 0
WebdriverIO QUnit Service testing results for a UI5 app.
WebdriverIO QUnit Service now supports all sort of QUnit usage in SAP Fiori and UI5 apps! Whatever UI5/QUnit testing method you're using, you can run it with wdio-qunit-service.
All you need is a wdio.conf.js file. Have a look at an example:
github.com/SAP/openui5-...
22.01.2025 11:30 — 👍 2 🔁 1 💬 2 📌 0
Original post on mastodon.social
My final post for the year on @TheNewStack is a wrapup of the leading #webdev trends of 2024:
“The year in web development was characterized by a return to simpler ways of building a website or web application. Partly this was a reaction against the increasing complexity of JavaScript […]
23.12.2024 18:24 — 👍 1 🔁 4 💬 0 📌 0