Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Current State of Crossplatform JavaScript Unit and Systems Testing

Current State of Crossplatform JavaScript Unit and Systems Testing

Problem

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?

Problem courtesy of: Michael Miyagi

Solution

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
Solution courtesy of: Andreas Köberle

Discussion

View additional discussion.



This post first appeared on Node.js Recipes, please read the originial post: here

Share the post

Current State of Crossplatform JavaScript Unit and Systems Testing

×

Subscribe to Node.js Recipes

Get updates delivered right to your inbox!

Thank you for your subscription

×