Skip to content

Commit bb572ef

Browse files
committed
YUITest: Collect the full set of failing tests
Was previously only picking up the first fail, then the `grunt.fail.warn` would terminate additional logging
1 parent 2a75bf9 commit bb572ef

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tasks/yuitest.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module.exports = function( grunt ) {
2121

2222
var message = "",
2323
results = event.results,
24-
i, len;
24+
i, len, gruntFailMessage;
2525

2626
switch(event.type){
2727
case TestRunner.BEGIN_EVENT:
@@ -42,8 +42,9 @@ module.exports = function( grunt ) {
4242
grunt.log.writeln("Tests failed:");
4343

4444
for (i=0,len=failures.length; i < len; i++){
45-
grunt.fail.warn(failures[i].name + "\n" + failures[i].error);
45+
gruntFailMessage += failures[i].name + "\n" + failures[i].error;
4646
}
47+
grunt.fail.warn(gruntFailMessage);
4748
}
4849

4950
// Tell grunt we're done the async operation

0 commit comments

Comments
 (0)