I am building a Backbone app and I need to have automated tests. I prefer not to use selenium for automated testing.
I am looking into Jasmine and Cucumber.js. I think Jasmine might be better but in the company I work they use cucumber for the server side testing and I am investigating if cucumber.js can be used for production.
Any suggestions?
Cucumber.js is quite stable and ready to be used in production. It lacks a few advanced features compared to Cucumber ruby, like
scenario outlines and(now available) transforms, though. See the README for the development status table.It can be used with Zombie.js, Phantom.js, Selenium and even within browsers. Virtually, you can use whatever assertion/testing library within your Cucumber step definitions.
As Andreas pointed out, Jasmine is aimed at unit tests/specs while Cucumber is an acceptance testing tool (hitting the whole application stack).
If you need help getting started with Cucumber.js, feel free to ping me (@jbpros on Twitter, jbpros on Freenode/#cucumber).