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: custom thresholds and exit code 0 vs exit code -1 #105

Open
westlakem opened this issue Feb 8, 2017 · 1 comment
Open

Comments

@westlakem
Copy link

westlakem commented Feb 8, 2017

For the CLI, it would be nice (for CI pipelines) to have a threshold you can set for a successful run. EX:

cuke_sniffer_conf. (json/yaml, etc)
THRESHOLDS: {
"Project": 100,
"Feature": 6,
"Scenario": 4,
"StepDefinition": 5,
"Hook": 10
}

// this would update the THRESHOLDS in constants.rb

Then in cli.rb
def output_results
CukeSniffer::Formatter.output_console(self)
any_thresholds_breached ? exit 0 : exit -1
end

That way there's a way to exit out of the build pipeline if you're over threshold

@presidentelect
Copy link

I like this suggestion. I might even look into implementing it.

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