When you think of writing tests, usually you would write them using a tool from the xUnit family, PHPUnit, JUnit, etc., or if you like a more BDD-style approach, perhaps you would use RSpec, Jasmine, or some other tool like that. Then there’s Cucumber. Instead of writing your tests purely in code, with Cucumber you start by writing a human-readable …
Headless Chrome/Firefox testing in NodeJS with Selenium and Xvfb
The other day I wanted to run a bunch of tests with a browser in a NodeJS environment. Having been spoiled by how easy it was to do in a Rails setup using Capybara, I thought it would be easy considering how everything cool is easy to do with Node! Well, I thought wrong. It’s easy once you have everything …