Support RSpec + Sauce Jenkins Plugin #313
Comments
I updated my sauce_ruby example to output xml. The Sauce plugin doesn't work with this output.
|
@rossrowe Is it possible for you to provide an example junit.xml file that the sauce on demand Jenkins plugin parses correctly so I can try and fix the Sauce Ruby gem to support it? |
The gem should parse the environment variables required to obtain config from the Plugin, but you have to use a 3rd party formatter to get junit output. I've done it before but can't immediately find the project I did it with. I think the best approach might be to create an RSpec formatter that both generates the JUnit style XML output, and the SessionID output required in STDOUT. I believe @imurchie included that output in the gem but it may not be working currently; The test suite is... in flux. |
@DylanLacey I'm using yarjuf for junit output (that is where my junit.xml is from) and confirmed that the console output contains the expected The junit xml output and session id in stdout both exist yet nothing is working. My guess is the plugin is expecting some additional data in the xml. I have no idea since there are no complete examples for this in any language. |
Ok, I found an example junit.xml output in the java plugin test suite. The plugin expects the system out information to be embedded within the JUnit report which is annoying and explains why it's not working. |
I dug up the internal ticket where I talked about this, I used yarjuf as IIRC the job-name needs to match the test name substantially, in order to On Mon, May 4, 2015 at 6:21 PM, bootstraponline notifications@github.com
Dylan LaceyDeveloper Evangelist |
Oh. Huh. That... was not my understanding. You mean the job-name & On Mon, May 4, 2015 at 6:33 PM, bootstraponline notifications@github.com
Dylan LaceyDeveloper Evangelist |
Yes. I looked at the cucumber issue from a long time ago and they ended up rewriting the formatter to capture stdout in the junit.xml which seems crazy. cucumber/common#259 |
Ok. I must have misunderstood something. I ran the job again and now it's working (without any changes to the code). Sorry for the noise. I'm demoing this tomorrow at work so that's why I was trying to get it figured out. |
|
The Sauce Ruby plugin should support rspec + jenkins. It doesn't.
https://docs.saucelabs.com/ci-integrations/jenkins/#integrating-tests-with-the-jenkins-sauce-ondemand-plugin
#48
The text was updated successfully, but these errors were encountered: