Skip to content
Permalink
Browse files
feat(cucumber-2): cucumber-2 module no longer depends on protractor.
affects: @serenity-js/core, @serenity-js/cucumber-2
  • Loading branch information
jan-molak committed May 20, 2017
1 parent d5f76fd commit 799bde613e6549ed1f4bff7e356cc57370df2751
@@ -0,0 +1 @@
export * from './test_framework_adapter';
@@ -41,18 +41,17 @@
"npm": ">= 3"
},
"peerDependencies": {
"cucumber": "2.0.0-rc.9",
"serenity-js": ">= 1.4"
"cucumber": "2.0.0-rc.9"
},
"devDependencies": {
"@serenity-js/devtools": "*",
"@types/cucumber": "2.0.0",
"cucumber": "2.0.0-rc.9",
"serenity-js": "*"
},
"dependencies": {
"@types/glob": "5.0.30",
"@types/lodash": "4.14.55",
"cucumber": "2.0.0-rc.9"
},
"dependencies": {
"@serenity-js/core": "*",
"glob": "7.1.1",
"lodash": "4.17.4"
},
@@ -1,4 +1,4 @@
import { serenity } from 'serenity-js';
import { serenity } from '@serenity-js/core';
import { ChildProcessReporter } from '../spawner/child_process_reporter';

import path = require('path');
@@ -1,13 +1,12 @@
import { Result } from '@serenity-js/core/lib/domain';

import { given } from 'mocha-testdata';
import { CucumberAdapter } from '../src/cucumber_adapter';
import { DomainEvent, Result } from 'serenity-js/lib/serenity/domain';
import { StageCrewMember } from 'serenity-js/lib/serenity/stage';
import { spawner } from './spawner/spawner';
import path = require('path');
import { serenity } from 'serenity-js';

import chai = require('chai');
import chaiAsPromised = require('chai-as-promised');
import { spawner } from './spawner/spawner';
chai.use(chaiAsPromised);

const expect = chai.expect;
@@ -1,5 +1,5 @@
import { DomainEvent } from 'serenity-js/lib/serenity/domain/events';
import { StageCrewMember } from 'serenity-js/lib/serenity/stage/stage_manager';
import { DomainEvent } from '@serenity-js/core/lib/domain';
import { StageCrewMember } from '@serenity-js/core/lib/stage';

export class ChildProcessReporter implements StageCrewMember {
constructor() {
@@ -8,7 +8,7 @@ import {
SceneFinished,
SceneStarts,
Tag,
} from 'serenity-js/lib/serenity/domain';
} from '@serenity-js/core/lib/domain';

import { ForkOptions } from 'child_process';

@@ -1,5 +1,6 @@
import { TestFrameworkAdapter } from 'serenity-js/lib/serenity-protractor/framework';
import { SerenityConfig } from 'serenity-js/lib/serenity/serenity';
import { SerenityConfig } from '@serenity-js/core';
import { TestFrameworkAdapter } from '@serenity-js/core/lib/integration';

import { CucumberOptions } from './cucumber_options';

import _ = require('lodash');
@@ -1,4 +1,4 @@
import { SerenityConfig } from 'serenity-js/lib/serenity/serenity';
import { SerenityConfig } from '@serenity-js/core';
import { CucumberAdapter } from './cucumber_adapter';
import { CucumberOptions } from './cucumber_options';

@@ -1,5 +1,5 @@
import { serenity } from 'serenity-js';
import { ActivityFinished, ActivityStarts, Outcome, RecordedActivity, RecordedScene, Result, SceneFinished, SceneStarts, Tag } from 'serenity-js/lib/serenity/domain';
import { serenity } from '@serenity-js/core';
import { ActivityFinished, ActivityStarts, Outcome, RecordedActivity, RecordedScene, Result, SceneFinished, SceneStarts, Tag } from '@serenity-js/core/lib/domain';
import { DataTable, DocString, FailureException, Scenario, ScenarioResult, Step, StepArgument, StepResult } from './model';

const CucumberStep = require('cucumber/lib/models/step').default; // tslint:disable-line:no-var-requires
@@ -1,5 +1,5 @@
import { serenity } from '@serenity-js/core';
import { defineSupportCode } from 'cucumber';
import { serenity } from 'serenity-js';

// wait for any tasks outstanding after the previous scenario
// see https://github.com/angular/protractor/issues/4087

0 comments on commit 799bde6

Please sign in to comment.