Side by side
ESM Unit vs WSO2 Contract Test Runner
Both stand on javascript testing frameworks. Which one you can start free with, which one lets you read the code, and what each costs once you pay.
Choose ESM Unit if you need browser-based unit tests for native ECMAScript modules, with isolated test files and coverage reporting. Look elsewhere if your test code depends on JSX or local relative imports that are not native ES modules and you cannot convert them.
Visit ESM UnitChoose WSO2 Contract Test Runner if you need a free, Apache-2.0 library for verifying live REST APIs against consumer-defined contracts. It supports a range of assertions and can pass extracted values between contracts. Look elsewhere if your contracts need XML path support, which the README lists as a todo.
Visit WSO2 Contract Test RunnerThe facts
| ESM Unit | WSO2 Contract Test Runner | |
|---|---|---|
| Free plan | Not published | Yes |
| Open source | Not published | Not published |
| Runs on | Web | Linux, Self-hosted |
| Lowest paid plan | Not published | Free or on request |
| Plans published | None | 1 |
| Maker | Not published | Not published |
| Website | github.com | github.com |
| On javascript testing frameworks | #21 of 23 | #17 of 23 |
ESM Unit: what it does well
- Runs browser tests without bundling or transpilation
- Isolates each test file in its own iframe and DOM
- Reruns failed tests individually with the Isolate control
- Reports per-file coverage with configurable thresholds
- Supports parallel execution
What to know first
- Requires Node 18 LTS or later
- JSX and some local relative imports need conversion
- Headless mode is supported only in Chrome and Firefox
- Watch mode cannot run alongside debug mode
WSO2 Contract Test Runner: what it does well
- Tests live REST API endpoints against consumer-defined expectations
- Supports a broad set of response assertions
- Post-conditions can share extracted values across contracts
- Suite configuration supports before and after contract runs
- Apache-2.0 licensed and free
What to know first
- The documented contract format is JSON
- XML path support is listed as a todo
- The documented workflow runs tests in Docker
Alternatives to ESM Unit Alternatives to WSO2 Contract Test Runner The whole list