-
-
Notifications
You must be signed in to change notification settings - Fork 731
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
AppVeyor.UploadTestResults failing silently #1097
Comments
In addition to the fix, would it be possible to report the error here? I've hit a 'silent failure' here also - at the time I had bigger problems so didn't investigate further. Would be great if the failure could be logged though! |
I think we need to tackle this as a separate issue. |
@ChrisMaddock new issue created here: #1112 |
Hmmm, yes and no, I think your particular requirement is already going to be met. This was added: Which as documented here: Will throw an exception, if not a successful operation. The other AppVeyor methods will get similar treatment as a result of #1112 |
What You Are Seeing?
When uploading test results using the AppVeyor.UploadTestResults method, no test results appear in the appveyor build, but there is no error produced.
After some debugging, it appears the appveyor api is returning 415 Unsupported Media Type
What is Expected?
The tests should upload correctly, or some sort of error should be produced
What version of Cake are you using?
0.14.0.0
Are you running on a 32 or 64 bit system?
x64
What environment are you running on? Windows? Linux? Mac?
Windows
Are you running on a CI Server? If so, which one?
AppVeyor
How Did You Get This To Happen? (Steps to Reproduce)
Cake build with NUnit tests, then upload to AppVeyor
Output Log
There is no output produced on failure
Possible Resolution
The appveyor example for this uses powershell: https://www.appveyor.com/docs/running-tests#uploading-xml-test-results
I have tried adding content-type, changing to multipart content upload and a few other changes, but nothing worked.
However, the powershell example uses System.Net.WebClient rather than System.Net.Http.HttpClient. Changing to this worked for me. I can submit a pull request with this change, but wondered if there were any other factors that I hadn't considered?
The text was updated successfully, but these errors were encountered: