Which framework do you recommend for unit testing in javascript (ECMAScript 6)?

0

I will develop a web application using ECMAScript 6. I would like to continue with the TDD Technique. What framework do you recommend for unit testing in javascript (ECMAScript 6)?

    
asked by anonymous 16.06.2017 / 21:23

1 answer

2

This is the type of the subjective question that can have several answers, also subjective, since it is the type of question that can generate answers based on opinions. I will indicate 3 with quotes from its developers. In my opinion, although everyone has quality, the choice will depend on the context, but there are other options that should be very good, such as Karma or Protactor , both developed by the Angular team, and many others, each with its own particularity and specificities.

Jasmine

  

Jasmine is testing framework for Javascript code, it does not depend on other JS frameworks. Does not require DOM

QUnit

  

Powerful unit testing javascritp framework, easy to use. It is used by JQuery projects. JQuery UI and JQuery Mobile and is able to test any generic JS code, including the project itself.

Sinon

  

Framework javascript tests, standalone, does not depend on other frameworks.

    
16.06.2017 / 22:24