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

results object 'skipped' count is incorrect #3127

Closed
kretschmannj opened this issue Apr 1, 2022 · 0 comments · Fixed by #3168
Closed

results object 'skipped' count is incorrect #3127

kretschmannj opened this issue Apr 1, 2022 · 0 comments · Fixed by #3168
Assignees

Comments

@kretschmannj
Copy link

kretschmannj commented Apr 1, 2022

The result object that gets passed to the reporter does not contain the correct 'skipped' count. I have a simple test for this ...

module.exports = {
    TestCase01: browser => {
        browser.assert.ok(false)
    },
    TestCase02: browser => {
        // do something
    },
    TestCase03: browser => {
        // do something
    }
}

... and my globals.js ...

module.exports = {
    reporter : results => {
      console.log(results)
    }
  }

The XML output file after I run the test shows skipped=2 ...
image
... but the results object shows skipped: 0 and skippedCount: 0 ...
image

I'm running Nightwatch version 1.7.12.

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

Successfully merging a pull request may close this issue.

2 participants