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

grunt.fail on ifFalse #1

Closed
nwtn opened this issue Feb 27, 2015 · 1 comment
Closed

grunt.fail on ifFalse #1

nwtn opened this issue Feb 27, 2015 · 1 comment

Comments

@nwtn
Copy link

nwtn commented Feb 27, 2015

Is there any way to make the grunt task fail if a test isn't passed?

@tylerbeck
Copy link
Owner

Because the purpose of the task is to switch task sets, it should never fail if the test evaluates to false. To get this behavior you can write a task that always fails and put it in the tasks to evaluate if the test fails. If you need to customize the message you can use a function as a test and output a value there.

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