Today I wanted to write some javascript tests for my Moviezz project.
Maybe two years ago, I’ve written javascript tests for a project at nine.ch.
I ended up by using Cucumber, Capybara and Selenium for this. The result was okay, but it took you a very long time to run the tests
and you could not do anything else than watching your webbrowser clicking links and filling in text.
Some weeks ago, I heard about PhantomJS and I waited since for the right chance to try it out.
PhantomJS enables you to run your javascript tests headless, means no browser windows is opened and used to click and fill.
This also gives you the ability to run your javascript tests via Jenkins or Travis.
Read on