You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue: When force is enabled, multitasks are unconditionally marked as success, even if a child task fails with a warning.
Expected behavior: A multitask is only marked as success if all the child tasks were marked as success.
Use case: Forcing a task to be performed unconditionally after a multitask, then making it required without force enabled to defer failure. See floriangosse/grunt-force-task#2 (comment). Related to #810.
Since the jasmine task is a multitask, this.requires('jasmine') will never throw an error, because the jasmine task is being marked as a success. This is counter intuitive, because a child task like jasmine:cars can fail, generate a warning, but will be not marked as success.
The text was updated successfully, but these errors were encountered:
Issue: When
force
is enabled, multitasks are unconditionally marked as success, even if a child task fails with a warning.Expected behavior: A multitask is only marked as success if all the child tasks were marked as success.
Use case: Forcing a task to be performed unconditionally after a multitask, then making it
required
withoutforce
enabled to defer failure. See floriangosse/grunt-force-task#2 (comment). Related to #810.Example:
Since the
jasmine
task is a multitask,this.requires('jasmine')
will never throw an error, because thejasmine
task is being marked as a success. This is counter intuitive, because a child task likejasmine:cars
can fail, generate a warning, but will be not marked as success.The text was updated successfully, but these errors were encountered: