Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synchronous step definitions #18

Open
ComLock opened this issue Dec 16, 2015 · 1 comment
Open

Synchronous step definitions #18

ComLock opened this issue Dec 16, 2015 · 1 comment

Comments

@ComLock
Copy link

ComLock commented Dec 16, 2015

Does karma-cucumberjs not support synchronous step definitions like cucumber-js does?
https://github.com/cucumber/cucumber-js#synchronous-step-definitions

I never get to when in the below example:

PhantomJS 1.9.8 (Mac OS X 0.0.0) LOG: 'Given'
WARN [PhantomJS 1.9.8 (Mac OS X 0.0.0)]: Disconnected (1 times), because no message in 10000 ms.
Feature:
    Feature text
    More feature text

    Scenario: Scenario text
    Given a
    When b
    Then c
    scenario.Given(/^a$/, function () {
        console.log('Given');
        console.log('leaving Given');
    });

    scenario.When(/^b$/, function () {
        console.log('When');
        console.log('leaving When');
    });
@s9tpepper
Copy link
Owner

I hadn't seen that feature, probably needs an update of the cucumber lib.
I'm on the cusp of freeing up some time which will allow me to do some more
work on this plugin.

-omar

On Wednesday, December 16, 2015, Christian Westgaard <
notifications@github.com> wrote:

Does karma-cucumberjs not support synchronous step definitions like
cucumber-js does?
https://github.com/cucumber/cucumber-js#synchronous-step-definitions

I never get to when in the below example:

PhantomJS 1.9.8 (Mac OS X 0.0.0) LOG: 'Given'
WARN [PhantomJS 1.9.8 (Mac OS X 0.0.0)]: Disconnected (1 times), because no message in 10000 ms.

Feature:
Feature text
More feature text

Scenario: Scenario text
Given a
When b
Then c

scenario.Given(/^a$/, function () {
    console.log('Given');
    console.log('leaving Given');
});

scenario.When(/^b$/, function () {
    console.log('When');
    console.log('leaving When');
});


Reply to this email directly or view it on GitHub
#18.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants