Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ukoloff/appveyor-mocha
Logging mocha test results to AppVeyor
https://github.com/ukoloff/appveyor-mocha
appveyor mocha node-js
Last synced: 18 days ago
JSON representation
Logging mocha test results to AppVeyor
- Host: GitHub
- URL: https://github.com/ukoloff/appveyor-mocha
- Owner: ukoloff
- Created: 2016-12-18T15:06:03.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-12-19T15:28:34.000Z (about 8 years ago)
- Last Synced: 2024-04-25T16:20:45.746Z (8 months ago)
- Topics: appveyor, mocha, node-js
- Language: CoffeeScript
- Size: 9.77 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:
```js
appveyor = require('appveyor-mocha');//...
appveyor.message(someMessage);
appveyor.log(anotherMessage); // console.log + appveyor.message```
[mocha]: https://mochajs.org/
[AppVeyor]: https://www.appveyor.com/
[AppVeyor Worker API]: https://www.appveyor.com/docs/build-worker-api/