-
Notifications
You must be signed in to change notification settings - Fork 13
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
Test runner doesn't return correct failure code if run in node script #26
Comments
I was able to work around it by adding
to the top of my node script. Ugly, but I guess it works. |
Actually, that didn't work. That returns an error code no matter what the exit code is. The problem is, the node execution of the qunit command always returns 0, for some reason. Even when it's failing. |
I got it working, but it's really ugly and painful. I had to call the command line directly using node execSync... yeah.
|
I don't know enough about this to propose a solution, so I'm open to suggestions or pull requests even. |
Sure, I'll try and look into it further when I get a sec. For the time being, executing the commands directly via an execSync() works. Honestly, it might be just a short fall of node itself. |
Take this setup for example:
The pre step compiles the necessary entry files for the tests. Then the runQunit.js file looks like this:
If one of those tests fail, it prints an error to the console, but doesn't return a valid error code that would kill something like CircleCI. Is there a flag in the nodeJS implementation to cause the script to fail completely if any of the qunit calls fail?
The text was updated successfully, but these errors were encountered: