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

Have task fail if threshold not met #1

Open
tkadlec opened this issue Jul 11, 2013 · 0 comments
Open

Have task fail if threshold not met #1

tkadlec opened this issue Jul 11, 2013 · 0 comments

Comments

@tkadlec
Copy link

tkadlec commented Jul 11, 2013

Digging the task! I would love to see it fail if the threshold parameter is not met, though. It would be great for enforcing certain criteria are met in order for the project to build.

Example:

        yslow_test: {
            options: {
            info: "grade",
            format: "json",
            urls: ['http://google.com'],
            reports: ['test/reports/yslow.json'],
            threshold: 90
        },

If the YSlow score wasn't above 90, the task would log an error and the build would fail. This could get very helpful when thresholds were set for specific tests using JSON objects as described here: http://yslow.org/phantomjs/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant