protractor-cucumber-framework
Advanced tools
Comparing version 3.1.0 to 3.1.1
@@ -1,2 +0,1 @@ | ||
let q = require('q'); | ||
let state = require('./runState'); | ||
@@ -17,8 +16,7 @@ let Cucumber = require('./cucumberLoader').load(); | ||
this.registerHandler('BeforeFeatures', function (event, callback) { | ||
this.registerHandler('BeforeFeatures', function() { | ||
clearResults(); | ||
callback(); | ||
}); | ||
this.registerHandler('AfterScenario', function (scenario, callback) { | ||
this.registerHandler('AfterScenario', function(scenario) { | ||
if (scenarioFailed) ++state.results.failedCount; | ||
@@ -29,8 +27,6 @@ stepResults.description = get(scenario, 'name'); | ||
scenarioFailed = false; | ||
let scenarioFinished = state.runner.afterEach ? state.runner.afterEach() : q(); | ||
scenarioFinished.then(callback); | ||
if (state.runner.afterEach) return state.runner.afterEach(); | ||
}); | ||
this.registerHandler('StepResult', function(stepResult, callback) { | ||
this.registerHandler('StepResult', function(stepResult) { | ||
let step = get(stepResult, 'step'); | ||
@@ -86,4 +82,2 @@ let scenario = get(step, 'scenario'); | ||
} | ||
callback(); | ||
}); | ||
@@ -90,0 +84,0 @@ } |
{ | ||
"name": "protractor-cucumber-framework", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "Protractor framework for Cucumber.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Protractor Cucumber Framework | ||
============================= | ||
[![npm-version](https://img.shields.io/npm/v/protractor-cucumber-framework.svg)](https://www.npmjs.com/package/protractor-cucumber-framework) | ||
[![Join the chat at https://gitter.im/protractor-cucumber-framework/protractor-cucumber-framework](https://badges.gitter.im/protractor-cucumber-framework/protractor-cucumber-framework.svg)](https://gitter.im/protractor-cucumber-framework/protractor-cucumber-framework?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) | ||
[![Build Status](https://travis-ci.org/protractor-cucumber-framework/protractor-cucumber-framework.svg?branch=master)](https://travis-ci.org/protractor-cucumber-framework/protractor-cucumber-framework) | ||
[![dependencies](https://david-dm.org/protractor-cucumber-framework/protractor-cucumber-framework/status.svg)](https://david-dm.org/protractor-cucumber-framework/protractor-cucumber-framework) | ||
[![dev dependencies](https://david-dm.org/protractor-cucumber-framework/protractor-cucumber-framework/dev-status.svg)](https://david-dm.org/protractor-cucumber-framework/protractor-cucumber-framework?type=dev) | ||
[![peer dependencies](https://david-dm.org/protractor-cucumber-framework/protractor-cucumber-framework/peer-status.svg)](https://david-dm.org/protractor-cucumber-framework/protractor-cucumber-framework?type=peer) | ||
![download-count](https://img.shields.io/npm/dm/protractor-cucumber-framework.svg) | ||
[![open-issues](https://img.shields.io/github/issues/protractor-cucumber-framework/protractor-cucumber-framework.svg)](https://github.com/protractor-cucumber-framework/protractor-cucumber-framework/issues) | ||
[![contributors](https://img.shields.io/github/contributors/protractor-cucumber-framework/protractor-cucumber-framework.svg)](https://github.com/protractor-cucumber-framework/protractor-cucumber-framework/graphs/contributors) | ||
This framework was originally part of [angular/protractor](https://github.com/angular/protractor) and | ||
@@ -7,0 +16,0 @@ is now a separate module to decouple [cucumber.js](https://github.com/cucumber/cucumber-js). |
16634
154
225