It's actually fairly simple: I'm using the capybara selenium driver to run the JSpec tests and grab the results from the DOM when they finish. Here's the testcase:
From here, running it under CI is trivial. In fact I didn't have to do anything at all, the tests was found by rake test:integrations and ran (and passed!) in the next build. Most of the heavy lifting is done by capybara and selenium-webdriver.
Obviously there is a lot that could be done to improve this code. I could grab the jspec file from a FileList, and grab some better failure messages from the DOM. I could also probably write a custom JSpec formatter to make this easier on myself even. I'm thinking if there is interest I could finish this up and turn it into a gem. Please comment if you'd use such a thing.
Also, one more thing you will need is the JSpec runner file that can run a single test. I did that like so:
Enjoy!
5 comments:
Wow, sounds awesome.. I definitely will try this :)
The actualCheap wow gold banter backwards and forwards don't seem to be very well as I hoped. Rick eventually left me my personal open positions, I merely got tense and had difficulties creating normalBuy rs gold appearing tendencies.
Such was the prevailing predicament inside the ancient Chinese civilization. The impact was also noticed on the ancient Chinese clothing of the common man. Correct attire was regarded because the ultimate expression of Chinese culture and identity, differentiating them from 'inferior' foreign neighbors while producing social and gender distinctions within their society. The ancient Chinese clothes had distinct cultural meaning Chinese Fashion, with correctly attired bodies reflecting order and control and unadorned bodies and feet serving as visible indicators of disorder and risky nonconformity with the individual risking association to barbarian outsiders.
Buy D3 Gold Furthermore, i feel there is no spot for the Robber throughout competetive staff matches for that reality that you can not continue being great Guild Wars 2 Gold at melee whatsoever with the amount of CC's every staff has and the way soft our own profeession is actually.
JavaScript Training Course is essential to the achievements of an individual. Perhaps its most positive benefit is better employees. A company develop the potential of an employee, and part of the way a company encourages improvement is through training.
JavaScript Course
Online Javascript Course
Javascript Course Online
Free Online Javascript Course
AngularJS Interview Questions
JavaScript-Tutorials
Post a Comment