awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
qunitjs avatar

qunitjs/qunit

0
View on GitHub↗
qunitjs.com↗

Qunit

QUnit is a JavaScript unit testing framework for client-side and server-side code. It combines an assertion library with a test runner that executes the same suites in major desktop and mobile browsers, web workers, sandboxed iframes, Node.js, and SpiderMonkey. A command-line runner can rerun tests when files change, use a seeded random order, and switch between reporters.

Assertions cover strict and loose comparisons, numbers within a tolerance, partial object matching, thrown errors, and the order in which steps are executed. Tests that return promises or async functions are awaited automatically, and manual completion signals are available for callback-style code. Uncaught errors and unhandled promise rejections are treated as failures. Results flow through an event-driven reporter layer, so a run can feed a browser results page, TAP output, or a custom reporter.

Tests can be organized into nested modules whose setup and teardown hooks cascade to child modules and share a context. Data sets can generate tests, and tests can be skipped, marked as todo, or focused. Runs can be narrowed by URL parameter or a filter function, and the seeded shuffle makes order-dependent failures reproducible. The framework also works with Karma, Testem, task runners, and module bundlers, and it ships separate builds for Node.js, native ES modules, and bundlers. Code coverage reports are available in text, HTML, and clover formats.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Features

  • JavaScript Testing Frameworks - A framework for writing and running unit tests on client-side and server-side JavaScript, with assertions, hooks, and async support.
  • Command-Line Test Runners - Runs test files from a terminal command with options for watching files, setting a random seed, and choosing reporters.
  • Cross-Environment Test Execution - Runs the same test suite in desktop and mobile browsers, Node.js, and SpiderMonkey without extra dependencies.
  • JavaScript Assertion Libraries - Offers strict, loose, tolerance-based, partial-object, and error-throwing assertions for verifying behavior in JavaScript tests.
  • JavaScript Test Frameworks - Lets developers write automated tests for client-side or server-side JavaScript to confirm functions and modules behave correctly.
  • Real Browser Testing - Executes test suites inside a browser page, with options to run in a web worker or sandboxed iframe for extra isolation.
  • Test Reporting Pipelines - Emits test lifecycle events to pluggable reporters so one run can feed a browser page, TAP output, or custom tools.
  • Asynchronous Code Testing - Tests promise-returning and async functions automatically, with manual completion signals, rejection checks, and ordered step verification.
  • Browser Results Pages - Presents results on an accessible HTML page with fuzzy module search, timings, early error display, and one-click rerun of failed tests.
  • Custom Test Reporters - Emits test lifecycle events to pluggable reporters so one run can feed a browser results page, TAP output, or a custom reporter.
  • Data-Driven Test Generation - Runs one test body for every entry in a data list and labels each generated test from its simple values.
  • Test Result Reporters - Reports test outcomes through a browser results page, TAP output, and custom reporters.
  • Conditional Skipping - Includes or skips individual tests and whole modules based on a condition, and marks unfinished tests as todo or skipped.
  • Setup and Teardown Hooks - Runs setup and teardown hooks before and after tests or modules, with context shared between parent and child modules and hooks applied globally.
  • Deterministic Seed Replays - Uses a numeric seed to shuffle test order deterministically so order-dependent failures can be reproduced on rerun.
  • Nested Module Hooks - Cascades setup and teardown hooks from parent modules to nested child modules with a shared test context.
  • Node.js Test Automation - Runs the same JavaScript suites in browsers, web workers, sandboxed iframes, Node.js, and SpiderMonkey.
  • Promise-Aware Test Completion - Awaits tests that return promises or async functions automatically, with manual completion signals for callback-style code.
  • Cross-Browser Testing Tools - Runs the same test suite across many browsers, web workers, and Node.js from the command line or watch loop.
  • Test Execution Filtering - Narrows a test run to specific modules, tests, or text matches using page query parameters or a filter function.
  • Test Run Settings - Offers settings to fail on zero tests, ignore unhandled rejections, and preconfigure options through environment or global variables.
  • Seeded Random Test Ordering - Shuffles test order from a seed value so order-dependent bugs surface and any failing run can be reproduced exactly.
  • Unhandled Error Failures - Treats uncaught errors and unhandled promise rejections as test failures and exposes an event to bail out of a run.
4,034 stars·774 forks·JavaScript·MIT·5 views

Star history

Star history chart for qunitjs/qunitStar history chart for qunitjs/qunit

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

Frequently asked questions

What does qunitjs/qunit do?

QUnit is a JavaScript unit testing framework for client-side and server-side code. It combines an assertion library with a test runner that executes the same suites in major desktop and mobile browsers, web workers, sandboxed iframes, Node.js, and SpiderMonkey. A command-line runner can rerun tests when files change, use a seeded random order, and switch between reporters.

What are the main features of qunitjs/qunit?

The main features of qunitjs/qunit are: JavaScript Testing Frameworks, Command-Line Test Runners, Cross-Environment Test Execution, JavaScript Assertion Libraries, JavaScript Test Frameworks, Real Browser Testing, Test Reporting Pipelines, Asynchronous Code Testing.

Which projects share features with qunitjs/qunit?

Projects with overlapping indexed features include: substack/tape — Tape is a JavaScript testing framework and assertion library that serves as a test runner for Node.js and browser… jquery/qunit — QUnit is a JavaScript unit testing framework designed to verify code behavior using assertions and lifecycle hooks… jasmine/jasmine — Jasmine is a JavaScript testing framework and test runner designed for behavior-driven development. It provides a… mochajs/mocha — Mocha is a JavaScript test runner and framework designed to execute automated test suites across multiple runtimes,… tape-testing/tape — Tape is a TAP-producing test framework for Node.js that provides assertions, spies, subtests, and isolated test… thomhurst/tunit — TUnit is a comprehensive C# testing framework, mocking library, and fluent assertion tool. It utilizes source…

Projects sharing features with Qunit

These projects share indexed features with Qunit. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • substack/tapesubstack avatar

    substack/tape

    5,800View on GitHub↗

    Tape is a JavaScript testing framework and assertion library that serves as a test runner for Node.js and browser environments. It implements the Test Anything Protocol to provide a standardized, machine-readable format for test results. The project functions as a cross-environment test harness, allowing the same test suites to be executed across both server-side and client-side environments while maintaining a consistent output protocol. Its capabilities include validating value equality and truthiness, verifying exception handling, and coordinating asynchronous workflows. The framework als

    JavaScript
    View on GitHub↗5,800
  • jquery/qunitjquery avatar

    jquery/qunit

    4,035View on GitHub↗

    QUnit is a JavaScript unit testing framework designed to verify code behavior using assertions and lifecycle hooks across browsers and server runtimes. It functions as a browser-based test runner with an HTML interface for reporting results, an asynchronous test orchestrator for coordinating callbacks, and a utility for isolating and verifying document object model changes. The framework distinguishes itself through specialized DOM testing capabilities, allowing for the isolation and resetting of the document object model between tests to ensure atomicity. It also features a system for detect

    JavaScript
    View on GitHub↗4,035
  • jasmine/jasminejasmine avatar

    jasmine/jasmine

    15,807View on GitHub↗

    Jasmine is a JavaScript testing framework and test runner designed for behavior-driven development. It provides a comprehensive toolset for writing and executing descriptive test suites that verify code behavior in both web browsers and Node.js environments. The framework is distinguished by its integrated mocking library, which allows for dependency isolation through spies and stubs, as well as the ability to simulate time and timing functions to test asynchronous logic synchronously. It also includes a mechanism to enforce test uniqueness, preventing duplicate names for tests and suites. I

    JavaScript
    View on GitHub↗15,807
  • mochajs/mochamochajs avatar

    mochajs/mocha

    22,967View on GitHub↗

    Mocha is a JavaScript test runner and framework designed to execute automated test suites across multiple runtimes, including Node.js and web browser environments. It functions as a pluggable testing tool for organizing and validating unit, integration, and functional tests. The project distinguishes itself through a plugin-based extension interface that allows for custom functionality and reporting. It supports a multi-runtime approach, enabling the same test suite to run in different JavaScript environments, and includes a watch mode that monitors the filesystem to trigger automatic test re

    JavaScriptbddbrowserjavascript
    View on GitHub↗22,967
Compare all 30 related projects→