Producing test files for final report with ci_reporter

88 views
Skip to first unread message

Niels

unread,
Dec 21, 2010, 3:09:40 PM12/21/10
to Jasmine
Is there a way of running Jasmine so it produces test output files
like when running Ruby unit test with rake test:unit and the
ci:setup:testunit target from the ci_reporter gem?

We run unit/functional/integration tests of our RoR code together with
the ci:setup:testunit target from the ci_reporter gem from
CruiseControl. This way when test cases fail it is easy to see the
errors in CruiseControl.

Is it possible to run Jasmine the same way using the ci:setup:testunit
target from the ci_reporter gem or is there another achieving the same
result?

Thanks,
Niels

Christian Williams

unread,
Dec 21, 2010, 6:50:46 PM12/21/10
to jasmi...@googlegroups.com
Jasmine, rspec, and ci_reporter should work together as you describe. Sorry I don't have any sample code handy at the moment, let me know and I can dig some up.

--X


--
You received this message because you are subscribed to the Google Groups "Jasmine" group.
To post to this group, send email to jasmi...@googlegroups.com.
To unsubscribe from this group, send email to jasmine-js+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jasmine-js?hl=en.


svanhess

unread,
Jan 21, 2011, 11:01:34 AM1/21/11
to Jasmine
You will need to write your own reporter class that produces XML
output and plug that in to jasmine with addReporter(). You can look
at https://github.com/larrymyers/jasmine-reporters for an example in
javascript. Unfortunately there doesn't seem to be an available
plugin for this. I'm currently considering writing the Reader class
in ruby for my needs (we're using Bamboo for our ci)

Christian Williams

unread,
Jan 22, 2011, 2:44:10 PM1/22/11
to jasmi...@googlegroups.com
svanhess, have you tried using ci_reporter with the jasmine rspec runner? it has worked fine for me in the past...

--X [typos courtesy of my iPhone]


Reply all
Reply to author
Forward
0 new messages