With thanks to Ben we discovered a nice way to get Jasmine tests to work on Tddium today. We had a number of issues with the jasmine-headless-webkit dependency Tddium said we had to use. Issues around requiring a file that required erb to compile; not finding the source files; getting to work in the browser but not the command line and maybe a few others.
Ben pointed out some undocumented configuration for Tddium which outlined ‘custom’ build steps wherein you could call the jasmine:ci rake task. This cleared everything up. Although I’m not sure how as Tddium said it could only cope with a headless browser environment.
Here’s the gist I hope it saves you as much time as it did me.
Glad to hear you’ve got this working We’ve updated our documentation on Javascript testing to hopefully be clearer.
http://docs.tddium.com/users-guide/javascript-testing
The Tddium CI workers do start Xvfb servers and support “headed” testing using real browsers with Selenium/Watir.
Feel free to drop us a line if you need any help getting tests to pass!
November 29, 2012 at 8:39 am