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

Add Support for Cucumber V2 #73

Closed
gkushang opened this issue May 18, 2017 · 4 comments
Closed

Add Support for Cucumber V2 #73

gkushang opened this issue May 18, 2017 · 4 comments

Comments

@gkushang
Copy link
Owner

No description provided.

@EugeneSnihovsky
Copy link

EugeneSnihovsky commented May 21, 2017

+1

No one reporter can work with cucumber v2 for now. It would be very helpful.

Generated report.json with [email protected]

[
  {
    "description": "Show error during sign in with wrong credentials",
    "assertions": [
      {
        "passed": true
      },
      {
        "passed": true
      },
      {
        "passed": true
      },
      {
        "passed": true
      },
      {
        "passed": true
      }
    ],
    "events": [
      {
        "emitterEvent": "testPass",
        "name": "When I go to \"sign in\" page",
        "category": "Sign in page scenario: Show error during sign in with wrong credentials",
        "durationMillis": 1183,
        "sourceLocation": {
          "filePath": "/Volumes/WORKSPACE/projects/bdd-reusable/features/sign-in/sign-in.feature",
          "line": 6,
          "column": 1
        }
      },
      {
        "emitterEvent": "testPass",
        "name": "And I fill \"username\" input field with \"[email protected]\"",
        "category": "Sign in page scenario: Show error during sign in with wrong credentials",
        "durationMillis": 156,
        "sourceLocation": {
          "filePath": "/Volumes/WORKSPACE/projects/bdd-reusable/features/sign-in/sign-in.feature",
          "line": 7,
          "column": 1
        }
      },
      {
        "emitterEvent": "testPass",
        "name": "And I fill \"password\" input field with \"wrongPassword\"",
        "category": "Sign in page scenario: Show error during sign in with wrong credentials",
        "durationMillis": 156,
        "sourceLocation": {
          "filePath": "/Volumes/WORKSPACE/projects/bdd-reusable/features/sign-in/sign-in.feature",
          "line": 8,
          "column": 1
        }
      },
      {
        "emitterEvent": "testPass",
        "name": "And I click \"log in\" button",
        "category": "Sign in page scenario: Show error during sign in with wrong credentials",
        "durationMillis": 52,
        "sourceLocation": {
          "filePath": "/Volumes/WORKSPACE/projects/bdd-reusable/features/sign-in/sign-in.feature",
          "line": 9,
          "column": 1
        }
      },
      {
        "emitterEvent": "testPass",
        "name": "Then I should see \"Wrong credentials\" error notification",
        "category": "Sign in page scenario: Show error during sign in with wrong credentials",
        "durationMillis": 2517,
        "sourceLocation": {
          "filePath": "/Volumes/WORKSPACE/projects/bdd-reusable/features/sign-in/sign-in.feature",
          "line": 10,
          "column": 1
        }
      }
    ],
    "duration": 4064
  }
]

Generated html screenshot

report screenshot

@EugeneSnihovsky
Copy link

My bad. Sorry. I used the wrong format in cucumberOpts. When I change

config.cucumberOpts.format = [
  'pretty'
];

to

config.cucumberOpts.format = [
  'json:reports/results.json',
  'pretty'
];

New file results.json appeared in report folder with right data format. And with it your module works perfectly. Thanks for great tool :)

@gkushang
Copy link
Owner Author

gkushang commented Jun 9, 2017

This will be resolved with #81

@gkushang
Copy link
Owner Author

gkushang commented Jun 9, 2017

published the fix with [email protected]. Please try it out, and let us know how it works.

@gkushang gkushang closed this as completed Jun 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants