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

Skipping a test reports as pending in output #315

Closed
timja opened this issue Dec 7, 2016 · 0 comments
Closed

Skipping a test reports as pending in output #315

timja opened this issue Dec 7, 2016 · 0 comments

Comments

@timja
Copy link
Contributor

timja commented Dec 7, 2016

What are you trying to achieve?

Skipping a test currently reports in two different manners using the default output format.
In the scenario output it uses an 'S'
In the final result output it reports 'Pending'
I would like it to say 'Skipped'

What do you get instead?

The final result output says 'Pending'

Provide console output if related. Use --verbose mode for more details.

1 pending

Provide test source code if related

Feature('Registration')

xScenario('[SKIPPED] Not running test', (I) => {
  I.amOnPage('/register')
})

Details

  • CodeceptJS version: 0.4.9
  • NodeJS Version: v7.2.0
  • Operating System: macOs Sierra
  • Protractor || WebDriverIO || Nightmare version (if related)
  • Configuration file:
{
  "tests": "./tests/**/*_test.js",
  "timeout": 10000,
  "output": "./output",
  "helpers": {
    "SeleniumWebdriver": {
      "url": "http://localhost:3000",
      "browser": "phantomjs"
    }
  },
  "include": {},
  "bootstrap": false,
  "mocha": {},
  "name": "integration-tests"
}

The code that does this looks to be:
Outputs pending:
https://github.com/Codeception/CodeceptJS/blob/master/lib/output.js#L106

Outputs skipped:
https://github.com/Codeception/CodeceptJS/blob/master/lib/reporter/cli.js#L48

Is there any reason for this?

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