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

Publish test output as JUnit XML report #220

Open
jeremyhiggs opened this issue May 5, 2016 · 3 comments
Open

Publish test output as JUnit XML report #220

jeremyhiggs opened this issue May 5, 2016 · 3 comments

Comments

@jeremyhiggs
Copy link

It would be great if Solenopsis published the test results in the JUnit XML format, so that continuous integration software (Jenkins, in my case) can parse and publish the test results.

I looked around for this, and thought the sf.generateTests property would implement this, but it seems not!

@pcon
Copy link
Member

pcon commented May 5, 2016

I don't think this is something (retrieving test results) that the ant interface supports. I know that the Metadata API does support this, so we'd have to start making use of that, and that's not territory we've gone into. As a stop-gap, I've used jsforce with node to get test coverage. I'm sure you could do something similar to get the results of the test run and generate the JUnit XML needed. If you want to take a look over the getTestResults.js and run_test.sh that I've used with TravisCI, they might give you a start. The script pushes the results to Coveralls, but I'm sure you could modify it easily enough to instead output the JUnit XML.

@jeremyhiggs
Copy link
Author

Thanks for the tips! I'll take a look at the scripts that you posted and see if I can modify those.

@sfloess
Copy link
Member

sfloess commented Feb 5, 2017

@jeremyhiggs / @pcon,

The Metadata API is something high on my priority list... I'm going to basically replace Lasius with whats in Keraiai and gut what's there now. Metadata is something I need pretty badly - the final stages of what I need to do is being formalized now (working one last issue in Keraiai)...

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

No branches or pull requests

3 participants