mardi 2 juin 2015

jasmine-jquery vs selenium drivers (like Nightwatch.js) and could reason choosing either?

I would like to add integration tests to an (Backbone.js) application I am maintaining, and considering what strategy is preferable and upsides and downsides for each:

  1. Running tests on the client side, with something like jasmine-jquery. Ideally I would like something like ember test helpers which allows writing simple synchronous looking code (while actually running async).
  2. Running tests on the server side using selenium drivers, for example Nightwatch.js.

It is hard to tell which approach has more community and tooling around it, and which projects are more mature. Additionally, I am getting the feeling that running tests on the client side might allow better isolation of tests, while running on the server side, might create tests which run longer and heavier (also to maintain?) but allow to simulate more complex real-user scenarios

Any thoughts would be appreciated




Aucun commentaire:

Enregistrer un commentaire