Skip to end of metadata
Go to start of metadata

Example Only

The information in these topics is presented as an example only, since your tests and testing environments may require specialized scripting. This information should be taken only as an illustration of how you would set up your JavaScript Unit Tests with Sauce Labs, and is not directly supported by Sauce.

Grunt is a task-based command line build tool, based on node.js, for JavaScript projects. Grunt-Saucelabs is a Grunt task that lets you run your JavaScript unit tests with browsers in the Sauce Labs automated testing cloud. It supports several test suites and frameworks for JavaScript unit testing, including:

  • QUnit, a JavaScript unit test suite used by the jQuery, jQuery UI and jQuery Mobile projects, that is capable of testing any generic JavaScript code, including itself
  • Jasmine, a behavior-driven development framework for testing JavaScript code
  • Mocha, a JavaScript test framework for running serial asynchronous tests
  • YUI Test, a browser-based testing framework from Yahoo!
  • "Custom" frameworks of your own devising
 In this Getting Started guide you'll learn how to use Grunt-Saucelabs to run QUnit, Jasmine, Mocha, YUI, or custom JavasScript unit testing frameworks on Sauce.


  • No labels