-
Notifications
You must be signed in to change notification settings - Fork 19
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
Error in plugin after a failed test #25
Comments
If I run the command manually in console, it looks like everything is running fine. This is the JSON it returns: {
"result":{
"failed":1,
"passed":0,
"total":1,
"runtime":5
},
"exceptions":{
"Test1":[
"Failed assertion: lorem, expected: true, but was: false",
"at http://code.jquery.com/qunit/qunit-1.19.0.js:1307",
"at file:///PATH_TO_PROJECT/tests/test.html:14",
"at http://code.jquery.com/qunit/qunit-1.19.0.js:810",
"at http://code.jquery.com/qunit/qunit-1.19.0.js:942",
"at process (http://code.jquery.com/qunit/qunit-1.19.0.js:624)",
"at begin (http://code.jquery.com/qunit/qunit-1.19.0.js:606)",
"at http://code.jquery.com/qunit/qunit-1.19.0.js:666"
]
}
} |
I am having the same issue. How did you run the plugin from the command line directly? |
It errors because it is specifically told to if a test fails. https://github.com/jonkemp/gulp-qunit/blob/master/index.js#L82 Isn't that desired behavior though? |
I added a test with a failing test. I also added a task to the gulpfile that simply logs the errors without stopping the stream. https://github.com/jonkemp/gulp-qunit/blob/master/gulpfile.js#L30 |
I have troubles running this plugin. I a test runner has all tests passed then everything is ok, but when some test fails, the plugin ends with error:
It crashes event with the simplest test:
Gulpfile:
Any idea what is wrong, or what do I do wrong?
windows
node: v4.1.2
gulp-qunit: 1.2.1
The text was updated successfully, but these errors were encountered: