MediaWiki API Testing Library
JSON →API-Testing is an open-source JavaScript library designed for conducting end-to-end integration tests against MediaWiki's Action API and REST API. It runs on Node.js environments (specifically Node.js >= 14.18.0) and is built upon established testing tools: `supertest` for making HTTP requests, `Chai` for its flexible assertion capabilities, and `Mocha` as the test runner. The current stable version is 1.7.3. This library provides a specialized framework for testing MediaWiki instances, whether locally installed or remote, offering a higher-level abstraction compared to using the underlying HTTP and assertion libraries directly. Its release cadence is tied to MediaWiki development and is actively maintained, as evidenced by its integration with Wikimedia's Gerrit and Phabricator for contributions and bug tracking. Key differentiators include its tight coupling with MediaWiki API structures, simplifying test authoring for that ecosystem, and its comprehensive integration test approach.
Traffic · last 30 days ↑13% vs prev 7d
top countries 🇺🇸 United States · 🇩🇪 Germany · 🇸🇬 Singapore · 🇨🇦 Canada · 🇫🇷 France