webdriverio-boneyard / wdio-spec-reporter

A WebdriverIO v4 plugin. Reporter that creates 'spec'-style reports
http://webdriver.io
MIT License
20 stars 27 forks source link

Output is incomplete #21

Open christian-bromann opened 7 years ago

christian-bromann commented 7 years ago

From @rochdev on January 17, 2017 11:47

Given a feature:

Feature: My Feature
    Scenario: My Scenario
        Given some context
        When I do something
        Then I achieve some goal

I would expect to have a similar output in the console, but instead I get:

My Feature

My Scenario
    ✓ some context
    ✓ I do something
    ✓ I achieve some goal

It's missing all the keywords to make proper sentences which are usually added by cucumber.

I am using the spec reporter with the pretty formatter.

Copied from original issue: webdriverio/wdio-cucumber-framework#46

christian-bromann commented 7 years ago

@rochdev right now this is how spec reporter works. It isn't quite aligned to other cucumber reporters. Note that WebdriverIO has framework independent reporters that work also with other test frameworks like Mocha or Jasmine.

The spec reporter could be smarter about which framework is used and adapt the output accordingly.