Skip to content

Test_Getting started with Unit Tests

William French edited this page Aug 7, 2014 · 1 revision

Getting started with Unit tests

This document shows you how to use Unit tests (UTs).

Tools

  • Jasmine is a behavior-driven development framework for testing JavaScript code
  • Chutzpah - A JavaScript Test Runner

How to run Unit tests

  1. Download Chutzpah from [site] (http://chutzpah.codeplex.com/)

  2. Extract archive to any folder

  3. Get the source code from github (fork https://github.com/alterm4nn/ChronoZoom).

  4. Run Chutzpah for *[solution dir]\Source\Chronozoom.UI.UnitTests\Scripts\Specs* from command line (cmd.exe)

    Example: [Path to unpackaged chutzpah]\chutzpah.console.exe [solution dir]\Source\Chronozoom.UI.UnitTests\Scripts\Specs\

    If you want open results in browser you could use key "/openInBrowser"

    Example: [Path to extracted chutzpah]\chutzpah.console.exe [solution dir]\Source\Chronozoom.UI.UnitTests\Scripts\Specs\ /openInBrowser

    All chutzpah Command Line Options - there

    Note If you want to run tests from Visual Studio 2012's Unit Text Explorer you should install "Chutzpah Test Adapter for Visual Studio"

    Open Tools in Visual Studio menu Select Extesions and Updates Find Chutzpah Test Adapter for Visual Studio Install it

You can get video tutorial from link