mocha-appveyor-reporter

2019-03-15 admin

mocha-appveyor-reporter是什么

什么是mocha-appveyor-reporter,Mocha Reporter to report tests while running in AppVeyor CI

mocha-appveyor-reporter使用教程帮助文档

Mocha reporter for AppVeyor

Report your test results to AppVeyor’s testing infrastructure.

Build status Build Status

See it in action with this repository.

Install

npm install --save-dev mocha-appveyor-reporter

Usage

mocha --reporter mocha-appveyor-reporter

Options

This reporter is configurable via use of --reporter-options or by setting environment variables.

Reporter Option Environment Variable Default
appveyorBatchSize APPVEYOR_BATCH_SIZE 100
appveyorBatchIntervalInMs APPVEYOR_BATCH_INTERVAL_IN_MS 1000
appveyorApiUrl APPVEYOR_API_URL unset, but AppVeyor sets the environment variable for you

The reporter will by default batch and send tests in an API call to AppVeyor for every 100 tests completed or 1000ms elapsed (whichever happens first).

To override this behavior you may do the following:

mocha --reporter mocha-appveyor-reporter --reporter-options appveyorBatchSize=1

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-57763.html

文章标题:mocha-appveyor-reporter

回到顶部