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

Feature Request: Include 'state' of hook in result #31

Closed
kmnaid opened this issue Jul 12, 2019 · 3 comments
Closed

Feature Request: Include 'state' of hook in result #31

kmnaid opened this issue Jul 12, 2019 · 3 comments

Comments

@kmnaid
Copy link
Contributor

kmnaid commented Jul 12, 2019

Describe the solution you'd like
Include the state of a hook in results so while reading the results it is similar to reading the state of a test

Describe alternatives you've considered
To get the state of a hook, check if there are errors in the hook object.

"hooks": [
        {
          "start": "2019-07-12T02:53:02.029Z",
          "end": "2019-07-12T02:53:02.036Z",
          "duration": 7,
          "title": "\"before all\" hook",
          "associatedSuite": "webdriver.io page",
          "errorType": "AssertionError",
          "error": "expected 1 to equal 6",
          "standardError": "AssertionError: expected 1 to equal 6\n    at Context.equal (example/test/basicTest.js:4:16)"
        }
      ]
@kmnaid
Copy link
Contributor Author

kmnaid commented Jul 16, 2019

Fixed by the merged PR.

@kmnaid kmnaid closed this as completed Jul 16, 2019
@fijijavis
Copy link
Collaborator

@kmnaid What test runner are you using? #34 was raised and appears to show an issue with this change when using Mocha. So I'm curious if you are using Mocha or maybe Jasmine.

@kmnaid
Copy link
Contributor Author

kmnaid commented Jul 23, 2019

@fijijavis: I am using Mocha.

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