failing task on unspecified phantom error, closes #64
This commit is contained in:
parent
e622be01c6
commit
e157b822bf
@ -62,6 +62,13 @@ module.exports = function(grunt) {
|
|||||||
vendor: 'http://code.jquery.com/jquery-1.10.1.min.js'
|
vendor: 'http://code.jquery.com/jquery-1.10.1.min.js'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
// @todo: automate fail case here
|
||||||
|
// syntaxError: {
|
||||||
|
// src: 'test/fixtures/syntaxError/src/**/*.js',
|
||||||
|
// options: {
|
||||||
|
// specs: 'test/fixtures/syntaxError/spec/**/*.js'
|
||||||
|
// }
|
||||||
|
// },
|
||||||
customTemplate: {
|
customTemplate: {
|
||||||
src: 'test/fixtures/pivotal/src/**/*.js',
|
src: 'test/fixtures/pivotal/src/**/*.js',
|
||||||
options: {
|
options: {
|
||||||
|
@ -140,7 +140,8 @@ module.exports = function(grunt) {
|
|||||||
grunt.log.error(message.red);
|
grunt.log.error(message.red);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
grunt.log.error(string.red);
|
grunt.log.error("Error caught from phantom. More info can be found by opening the Spec Runner in a browser.");
|
||||||
|
grunt.warn(string);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
7
test/fixtures/syntaxError/spec/test-spec.js
vendored
Normal file
7
test/fixtures/syntaxError/spec/test-spec.js
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
describe("syntax error test specs", function() {
|
||||||
|
|
||||||
|
it("specs should pass but task should fail", function() {
|
||||||
|
expect(true).toBeTruthy();
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
7
test/fixtures/syntaxError/src/test.js
vendored
Normal file
7
test/fixtures/syntaxError/src/test.js
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
// arbitrary broken JavaScriptt
|
||||||
|
|
||||||
|
arostien:*&SRT)(*LIRSETN:R*ST&)(R*ST&J(*RSTL));
|
||||||
|
|
||||||
|
window.foo = true;
|
Loading…
Reference in New Issue
Block a user