# caolan/nodeunit

Easy unit testing in node.js and the browser, based on the assert module.

Repository: https://github.com/caolan/nodeunit
Canonical: https://ross.abutalabs.com/products/nodeunit
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2022-10-21T19:20:51+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 6026, "days_push": 1412, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1889, forks 359 (observed 2026-08-28T04:05:49.430947+00:00)

## What it is
Nodeunit is a unit testing framework for Node.js and the browser, built on the assert module with support for asynchronous tests, setUp/tearDown, and multiple reporters. The project is officially deprecated and users are encouraged to adopt actively maintained alternatives like Mocha, Jest, or tape.

## Use cases
- run unit tests for node.js modules
- test asynchronous code in node
- run unit tests in the browser
- export tests from a module and run them with a CLI runner
- generate jUnit XML or HTML test reports
- use mocks and stubs in tests

## When to choose
- maintaining a legacy codebase that already uses nodeunit
- you need a minimal, assert-based test style with no new dependencies

## When to avoid
- starting any new node.js project
- you need an actively maintained testing framework
- you want modern features like snapshot testing or parallel execution

## Facets
- artifact type: library
- maturity: abandoned
- function: testing
- domain: testing, developer-tools, web-development
- platform: browser
- tags: unit-testing, async-testing, deprecated, test-runner, assertions, nodejs, javascript

## Member repositories
- caolan/nodeunit (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:49.430947+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:13:05.829277+00:00, confidence not recorded.
  - readme: https://github.com/caolan/nodeunit (fetched 2026-08-28T04:05:49.430947+00:00, sha 49d1e0c3469e)
  - registry_npm: https://registry.npmjs.org/nodeunit (fetched 2026-08-29T10:52:31.960149+00:00, sha a34e4d5e9207)
- Data as of 2026-08-30T08:39:29.467469+00:00.
