Skip to content
SPECIFICTION
Get listed

Karma vs WSO2 Contract Test Runner

Karma

karma-runner.github.io

WSO2 Contract Test Runner

github.com

Side by side

FigureKarmaWSO2 Contract Test Runner
Price fromFreeFree
Free planYesYes
Free trial——
Open source——
WebYes—
WindowsYes—
macOSYes—
LinuxYesYes
iOSYes—
AndroidYes—
Self-hostedYesYes
Plans published11
Spec score · JavaScript Testing Frameworks8.2 (#3)7.1 (#19)
LicenseKarma is released under the MIT license.The repository identifies its license as Apache-2.0.
PurposeKarma runs JavaScript tests in multiple real browsers and reports results to developers.It is a consumer-based contract testing library that calls live REST API endpoints and compares their responses with predefined contract responses.

Plans

Karma

  • KarmaFree

Karma pricing →

WSO2 Contract Test Runner

  • Contract Test RunnerFree

WSO2 Contract Test Runner pricing →

In their own words

Karma

Karma is a JavaScript test runner that starts a web server, connects browsers, runs tests, and reports results to developers. It can watch configured files and rerun tests when they change. Plugins connect frameworks such as Jasmine, Mocha, and QUnit, alongside preprocessors, reporters, and browser launchers. Documented launchers include Chrome, Firefox, Safari, PhantomJS, JSDOM, Opera, Internet Explorer, SauceLabs, and BrowserStack. A browser on another device on the same network, including a phone or tablet, can be captured by visiting the Karma server URL. Karma runs on Node.js and is distributed as an npm package; its installation guide recommends installing it locally in a project. Documentation includes integration guides for Travis CI, Jenkins, and Semaphore CI. The project describes Karma as primarily designed for low-level unit testing and points to Protractor for high-level testing. Karma is free and MIT-licensed, but deprecated: it accepts no new features or general bug fixes. Critical security fixes continue until 12 months after Angular CLI’s Web Test Runner support is marked stable.

Visit karma-runner.github.io

WSO2 Contract Test Runner

WSO2 Contract Test Runner is a free, Apache-2.0-licensed library for consumer-based testing of live REST API endpoints. It sends requests and compares returned data with expected responses defined in JSON contracts. A contract can include a request, expected response, assertions, and optional post-conditions. Assertions cover status codes, JSON body and header paths, exact values, regular expressions, emptiness, structures, arrays, and objects. Tests run through Docker by mounting contract and configuration files into the documented image workflow. Suites can run contracts before or after tests, with before-suite contracts running synchronously. Post-conditions can place extracted values into suite-scoped or global environment variables, and contracts can pause for a specified number of seconds. The sample setup uses bearer authorization, cookies, a certificate keystore, and a client truststore. XML path support is listed as a todo. Deployment is Linux and self-hosted.

Visit github.com