Skip to content

ama-team/allure-polyfill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Allure polyfill

This project is created to make it possible to stub Allure Framework JS API whenever original API is not available (for example, IDEA runs Mocha without any reporters, and because of that any test will fail on first Allure call).

Currently this package is targeted to replicate mocha reporter, however, other Allure integrations should have the very same API.

Installation

npm i @ama-team/allure-polyfill -D

Usage

With dumping every action to console.log:

require('@ama-team/allure-polyfill').ensure();

With silent data discard:

var polyfill = require('@ama-team/allure-polyfill');
polyfill.ensure(new polyfill.sink.BlackHole());

Versioning

I'm not as familiar with Allure as i wish, so, probably, the API would need several releases before it'll finally settle. Because of that, pre-1.0.0 minor releases act as major: they will break backward compatibility.

Things like that should not happen once 1.0.0 is released.

Badge cellar

npm version

Master branch

CircleCI master branch Coveralls master branch Code Climate Code Climate

Dev branch

CircleCI dev branch Coveralls dev branch