Close
Glad You're Ready. Let's Get Started!

Let us know how we can contact you.

Thank you!

We'll respond shortly.

LABS
Using Jasmine on tddium

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.

Comments
  1. Jay Moorthi says:

    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!

Post a Comment

Your Information (Name required. Email address will not be displayed with comment.)

* Copy This Password *

* Type Or Paste Password Here *