SpiraTest Integration with NodeJS, UnitJS and Mocha Now Available

31-Aug-2017 by Inflectra Product News

We are pleased to announce the release of the SpiraTest UnitJS/Mocha extension. This new plugin lets you integrate SpiraTest seamlessly into your NodeJS testing environment. With our new extension you can tell Mocha to report back the results of UnitJS tests directly to SpiraTest in addition to logging to the console of the machine running the test.

About UnitJS

UnitJS is an assertion library for JavaScript, running on Node.js or a web browser. It works with various test runner and unit testing frameworks, including Mocha, Jasmine, Karma, Protractor, and QUnit.

About Mocha

Mocha is a feature-rich JavaScript test framework running on Node.js and in the browser, making asynchronous testing simple and fun. Mocha tests run serially, allowing for flexible and accurate reporting, while mapping uncaught exceptions to the correct test cases.

About NodeJS

NodeJS is a JavaScript run-time built on top of Chrome's JavaScript engine. NodeJS uses an event-driven, non-blocking I/O model that makes it lightweight and efficient. A unique feature of NodeJS is its package ecosystem, npm, which is one of the largest ecosystem of open source libraries in the world.

About the SpiraTest Integration with UnitJS and Mocha

The new SpiraTest extension for UnitJS consists of a custom reporter for the Mocha test runner that automatically takes the results from each executed test suite and sends them to SpiraTest. In addition, we supply the source code to the extension, so you can easily adapt it for other runners such as Jasmine and Protractor, or change how it reports back depending on your specific needs.

How Do I Get The New Extension?

You can download the latest version of the UnitJS / Mocha custom reporter for SpiraTest from the main SpiraTest downloads page. The documentation is included on our main SpiraTest Unit Test Integration Manual.