Jasmine runners

Firing up a web page in order to run our tests every time we make a change to one of our tests can quickly become labor intensive and error-prone. We have already explored the use of Grunt in our build tools in order to detect file changes and automatically recompile our TypeScript files when a file is saved. In this section, we will explore a few test runners that will detect changes to our test suite, and automatically rerun our tests without intervention. Using test runners gives us instant feedback on the status of all tests, as we are writing our code and saving changes.


Testem is a node-based test runner. It is run from the command line, and opens up a simple interface to view test results. Testem will automatically ...

Get Mastering TypeScript - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.