Skip to content
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

Cannot get the build to fail with force:apex:test-run #58

Open
afawcett opened this issue Apr 15, 2018 · 9 comments
Open

Cannot get the build to fail with force:apex:test-run #58

afawcett opened this issue Apr 15, 2018 · 9 comments

Comments

@afawcett
Copy link

When i run the following from the command line on my workstation with failing tests in place...

sfdx force:apex:test:run --wait 10

And echo the return code i see the following...

echo $?
100

However when i run the same command (all be it with an alias arg) in Travis it returns 0?

fail

Is there something contextual about the commands return code?

You can see my project at https://github.com/afawcett/declarative-lookup-rollup-summaries

@afawcett
Copy link
Author

@dcarroll
Copy link
Contributor

Taking a look. Please stand by.

@amphro
Copy link

amphro commented Apr 17, 2018

The only conditional is that the failing property is set and not 0. You could run the command with --json and look at that property in the summary. Something like ... | jq .result.summary.failing. I'm not sure how that would happen, but if there is no summary or something else looks off, that could explain it.

@dcarroll
Copy link
Contributor

dcarroll commented Apr 17, 2018 via email

@afawcett
Copy link
Author

@amphro yeah the really odd thing is i get a 100 status code when running locally. This repo however does seem to work, yet @dcarroll and i can see now difference between my repos yaml config and this one (that is working). So i would say the output could be the difference if it was not for the fact it outputs the correct status locally... its a complete mystery.... i think i will try CircleCI next...

@afawcett
Copy link
Author

@amphro and thanks for the jq idea... i will keep that in mind, cool tool!

@jcory
Copy link

jcory commented Jul 18, 2018

@afawcett @dcarroll Did you ever reach any sort of resolution for this? We're encountering the same issue. I'd like to avoid switching to CircleCI, but at this point, that may be our best option.

@christianmoustrides
Copy link

Anyone figure this one out?

@ccheevers
Copy link

Any update on this issue, a failing assertion still results in a passed test with travis....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants