Socket
Book a DemoInstallSign in
Socket

appveyor-mocha

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

appveyor-mocha

Logging mocha test results to AppVeyor

latest
Source
npmnpm
Version
1.1.2
Version published
Maintainers
1
Created
Source

appveyor-mocha

Logging mocha test results to AppVeyor.

When mocha is run under AppVeyor reports test results (including stack trace in case of error) via AppVeyor Worker API.

In addition, arbitrary text can be logged.

When mocha is not run inside AppVeyor, this package does nothing.

Installation

npm install --save-dev appveyor-mocha

Then add two lines to test/mocha.opts:

--require appveyor-mocha
--no-exit

To post message to AppVeyor from your tests, say:

appveyor = require('appveyor-mocha');

//...

appveyor.message(someMessage);
appveyor.log(anotherMessage); // console.log + appveyor.message

Keywords

appveyor

FAQs

Package last updated on 19 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts