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

Cucumber-style like output for reporting #88

Closed
sleeloy-mdsol opened this issue Aug 21, 2018 · 1 comment
Closed

Cucumber-style like output for reporting #88

sleeloy-mdsol opened this issue Aug 21, 2018 · 1 comment

Comments

@sleeloy-mdsol
Copy link

Can we prep-pend Scenario: Feature: and add context to the Given When Then steps when generating the tests? (although there's an issue open to support adding additional context to the test: cypress-io/cypress#1910)
Would like to use mochawesome report generator to at least generate html on our CI.

Be nice to have the output in the cypress report to show the steps (Given, When, Then)
i.e. output would look like this

Feature: I verify I can login to TestSite with my user name and password
    Scenario: Logon to TestSite and verify Test is displayed
      - Given  I open login page
      - Then  I see "TestSite| Login" in the title
      - Then  I login to TestSite with user name and password '
      - And  I click on button
      - Then  I see 'Administration' in the title

Another alternative is perhaps map Feature -> describe Scenario -> describe and Steps -> it Like:
https://www.npmjs.com/package/mocha-cucumber, when generating tests. Cypress will then show each step as a Test in console might not be ideal though and no need to use cy.log.

@lgandecki
Copy link
Collaborator

I don't see a way of doing that as long as cypress makes every it separate, discussion here:

#44

tldr: we need this to be resolved: cypress-io/cypress#686

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