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

How to run cucumber in strict mode? #678

Closed
rsshilli opened this issue Feb 2, 2018 · 1 comment
Closed

How to run cucumber in strict mode? #678

rsshilli opened this issue Feb 2, 2018 · 1 comment

Comments

@rsshilli
Copy link

rsshilli commented Feb 2, 2018

We recently found out that a bad merge caused one of our cucumber tests to report as running fine on our build system even though the underlying functionality was broken. It turns out that the test steps that were poorly merged were being reported as undefined but Cucumber was passing anyways. Yikes!

I see Cucumber-js (supports a "Strict" mode](cucumber/cucumber-js#211) where it will return exit code 1 if a step is undefined.

But for the life of me, I can't figure out how to pass "--strict" to chimp. Is there a way? If not, could you point me to where I could add one?

@rsshilli
Copy link
Author

rsshilli commented Apr 5, 2018

OK. I finally figured it out myself. You can't turn it on through the chimp.js config file. You have to pass it as a command line option:

chimp yourChimpConfig.js --strict

@rsshilli rsshilli closed this as completed Apr 5, 2018
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

1 participant