Michael Miyagi
Michael Miyagi

Reputation: 23

Current State of Crossplatform JavaScript Unit and Systems Testing

For JavaScript projects, what asynchronous system and unit test framework would be most conducive to use in both node.js and web browsers.

Ideally, the testing system would be able to execute some tests specifically for node.js and some in web browsers, while also having general tests which run in all environments.

Also, does anyone make automatable browser tests?

Upvotes: 2

Views: 197

Answers (1)

Andreas Köberle
Andreas Köberle

Reputation: 111062

There are a bunch of unittest frameworks for JavaScript:

  • Jasmine
    • BDD style
    • for both node and browser testing
    • can run via maven, so you can used with CI (Jenkins)
  • BusterJS
    • its in beta state
    • BDD style
    • for both node and browser testing
    • Generates JUnit/Ant compatible XML output for use in continuous integration servers (Jenkins)
  • JSTestDriver
    • Plugins for eclipse and IntelliJ/Webstorm
    • runs in the browser , result saved on the server
    • calc code coverage

Upvotes: 2

Related Questions