معرفی شرکت ها


tap-summary-4.0.0


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Summarize TAP
ویژگی مقدار
سیستم عامل -
نام فایل tap-summary-4.0.0
نام tap-summary
نسخه کتابخانه 4.0.0
نگهدارنده ['hypercubed', 'zoubin']
ایمیل نگهدارنده ['hypercubed@gmail.com', 'zoubin04@gmail.com']
نویسنده zoubin
ایمیل نویسنده -
آدرس صفحه اصلی git+https://github.com/zoubin/tap-summary.git
آدرس اینترنتی https://github.com/zoubin/tap-summary#readme
مجوز MIT
# tap-summary [![version](https://img.shields.io/npm/v/tap-summary.svg)](https://www.npmjs.org/package/tap-summary) [![status](https://travis-ci.org/zoubin/tap-summary.svg?branch=master)](https://travis-ci.org/zoubin/tap-summary) [![dependencies](https://david-dm.org/zoubin/tap-summary.svg)](https://david-dm.org/zoubin/tap-summary) [![devDependencies](https://david-dm.org/zoubin/tap-summary/dev-status.svg)](https://david-dm.org/zoubin/tap-summary#info=devDependencies) A reporter for TAP. ## Example ![summary](example/clip.gif) ## Usage ### package.json ```json { "scripts": { "test": "tape test/*.js | tap-summary" } } ``` ### CLI Options ``` --no-ansi Disable ANSI formatting --no-progress Disable progress output during tests ``` ### API ```js var summarize = require('tap-summary') var fs = require('fs') fs.createReadStream('test.tap') .pipe(summarize({ ansi: true, progress: true, })) .pipe(process.stdout) ``` Also, the default formatter could be replaced with custom ones. ```js var reporter = require('tap-summary').reporter() var fs = require('fs') fs.createReadStream('test.tap') .pipe(customize(reporter)) .pipe(process.stdout) ``` The `reporter` is a `Duplex`, which consumes the TAP input and output nothing by default. However, it emits the following events during the process, so that `customize` could listen to them and add something into the output. * reporter.on('test.start', test => {}). Fired when a new test detected. * reporter.on('test.end', test => {}). Fired when the end of a test reached. * reporter.on('test.assert', (assertion, test) => {}). Fired when a new assertion found. * reporter.on('summary', (stats, fails, comments) => {}). Fired when all TAP input has been processed. Details about the `test` and `assertion` object could be found [here][tap-out]. The `stats` object: ```js var stats = { // the total time (ms) it takes duration: duration, // the total number of assertions planned planned: res.plans.reduce(function (p, c) { return c.to - c.from + 1 + p; }, 0), // the actual total number of assertions found assertions: res.asserts.length, // the number of successful assertions pass: res.pass.length, // the number of failed assertions fail: res.fail.length, // the number of comments found comments: res.comments.length, } ``` `fails` will be `null` unless `stats.fail > 0`: ```js { testName: [failedAssertion] } ``` `comments` will be `null` unless `stats.comments > 0`: ```js { testName: [comment] } ``` [tap-out]: https://github.com/scottcorgan/tap-out


نیازمندی

مقدار نام
^1.0.1 ansi-escape
^2.9.0 commander
^2.0.0 figures
^3.0.0 pretty-ms
^2.0.0 tap-out


زبان مورد نیاز

مقدار نام
6.5.0 Npm


نحوه نصب


نصب پکیج tgz tap-summary-4.0.0:

    npm install tap-summary-4.0.0.tgz