-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Failing tests returning code 0 #99
Comments
Yes, this will be fixed soon. But in any case, the CI server should parse On Fri, Mar 21, 2014 at 3:27 PM, Richard Walker [email protected]:
|
nope, circle ci works by watching the error code. If its a 0, build passes. #capture test output
output=`npm test`;
#output test output
echo -e $output;
#check for test failure
echo $output | grep "FAILED:"
#if grep succeeds (code 0) then FAILED was found, fail the tests
if [[ $? = 0 ]]; then
exit 1
fi Pretty nasty so will look forward to your fix. |
It is :). Which CI are you using? On Fri, Mar 21, 2014 at 4:27 PM, Richard Walker [email protected]:
|
Circle CI |
so they don't support junit xml output? On Fri, Mar 21, 2014 at 4:37 PM, Richard Walker [email protected]:
|
Fixed in da46284. Will be in npm soon also. |
nice, you da man ;) |
CircleCI dev here: junit.xml support is coming :) |
Cool :), do you support other formats? On Fri, Mar 21, 2014 at 5:11 PM, Paul Biggar [email protected]:
|
@beatfactor junit will be the first format (actually, we do support it, but need to make some schema changes before we can support it for everyone). After that we'll add other formats. Anything in mind? [sorry to hijack the thread folks, please feel free to reach out to [email protected] with questions if you prefer] |
No, nothing in particular. I was just wondering because nightwatch only On Fri, Mar 21, 2014 at 6:51 PM, Paul Biggar [email protected]:
|
Fixed in v0.4.7. |
thanks! awesome! |
@digitalsadhu what does your circle.yml file look like? I can't seem to get this working... |
circle.yml machine:
node:
version: 0.10.22
test:
pre:
- npm run selenium:
background: true
- sleep 5 |
Thanks! I managed to get it working. We are using a grunt task to run the tests, so I needed to bubble up the exit code to the topmost process to get this working. |
I am experiencing this problem when trying to boot up my own server in the global:
always exits with |
Not sure if this is my bad but my tests have failures yet $? tells me the exit code was 0. Because of this CI thinks everything went fine. Using nightwatch ~0.4.4
Test:
Response:
TEST FAILURE: 1 assertions failed, 0 passed and 5 skipped.
Step "List TMPs" skipped.
FAILED: 1 assertions failed and 5 skipped
The text was updated successfully, but these errors were encountered: