Skip to content
SPECIFICTION
Get listed

@hapi/lab vs Web Test Runner

@hapi/lab

hapi.dev

Web Test Runner

modern-web.dev

Side by side

Figure@hapi/labWeb Test Runner
Price from—Free
Free plan—Yes
Free trial——
Open source——
Web—Yes
Windows—Yes
macOS—Yes
Linux—Yes
Self-hosted—Yes
Plans published01
Spec score · JavaScript Testing Frameworks7.0 (#20)8.2 (#4)
InstallationThe documented installation commands use npm, Yarn, or pnpm to add @hapi/lab to a project.The official installation instructions use npm to add @web/test-runner as a development dependency.
Purpose@hapi/lab is a test utility for Node.js.Web Test Runner is a test runner for web applications.
SupportThe hapi support page says free help is available through GitHub issues, Discord, and Slack.The project links to Discord for community discussion and lists sponsorship and contributions as ways to support it.

Plans

@hapi/lab

No plans published.

@hapi/lab pricing →

Web Test Runner

  • Open sourceFree

Web Test Runner pricing →

In their own words

@hapi/lab

@hapi/lab has no write-up on Specifiction yet; its figures are above.

Visit hapi.dev

Web Test Runner

Web Test Runner is a test runner for web applications, installable as an npm development dependency. It runs tests in parallel and isolation, giving each test file its own browser environment. Headless testing is supported through launchers including Puppeteer, Playwright, Selenium, BrowserStack, and WebdriverIO. Playwright can use Chromium, Firefox, and WebKit; BrowserStack runs tests remotely, including against older browser versions. Debug mode opens a browser window with developer tools, and the runner reports browser logs, 404 responses, and errors. Its command line offers interactive watch mode that reruns tests when files change, plus code coverage with configurable thresholds and reports. Default coverage instrumentation uses Chromium. Other features include ES module mocking through import maps and Mocha integration, with guidance for a custom test framework. The project is MIT-licensed, powered by esbuild and Rollup plugins, and directs users to GitHub and Discord for help and discussion. It is free and open source.

Visit modern-web.dev