lundi 23 novembre 2015

preferred testing methods for ReactJS?

Having just scoped our first serious React with NodeJs project we're re-evaluating our testing processes. FYI we're traditionally we're an Angular based agency running a Jasmine/Karma etc setup taking out first - excited - steps into ReactJS.

We've had several approaches suggested, generally a Mocha framework based with JsDOM combined with Chai / Mockery / ShouldJS etc.

But newer players of which we've no experience have been suggested like Tape, Jest

Then there's the upcoming Shallow Rendering feature which sounds great but is it stable and usuable with current limitations - is anyone using it yet? there was an interesting read on another thread earlier this year.

Do people generally still use Selenium for React projects or stick with what they can do inside Mocha or are there preferred alternatives? This topic alone seems to have almost marmite advise.

I realise that there are multiple testing routes and 'right tools' for the job, especially when considering things like:

  • state testing
  • event simulation
  • shallow rendering
  • utility testing
  • real DOM
  • etc

So any community insight and experience input into preferred flows would be much appreciated!

Aucun commentaire:

Enregistrer un commentaire