tddf
WARNING: this is a very early and probably very unstable version.
Overview
Testing framework focused on developer ergonomics.
Highlights
-
API 100% compatible (tests run without any modifications) with node-tap, tape and AVA. Migrating to Jest possible via codemod.
-
Tests are easily debuggable (just set a breakpoint and run!).
-
Does not require a dedicated test runner. Test files are directly runnable (eg.
node test.js
). -
Includes a test runner anyways, for your convenience.
-
Supports async tests (and they run concurrently!).
-
Includes a tiny assertion library, but you can use any other you want.
-
No dependencies.
-
Fast!
Installing
npm install tddf
Then set your test
script to tddf
in your project's package.json
.
Usage
Write your tests
Create a test file anywhere in your project (eg. silly.test.js
).
; ; ;
Run your tests
npm test
Other Notes
- Requires Node.js v12.17+ (for ES modules support).