Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 18. Unit Testing > Selecting Tests to Run

18.9. Selecting Tests to Run

18.9.1. Problem

When debugging a failing test, it can be a huge waste of time to rerun the entire test suite after every little change to your code just to see whether a single test now passes.

18.9.2. Solution

QUnit offers URL filtering to select the tests to run. This works best when combined with modules. You can run just the tests from a given module by appending a query string with the module name to the test suite URL. For example, test.html?validation will run all tests in the module named validation:


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial