-
Notifications
You must be signed in to change notification settings - Fork 127
Test_Getting started with Unit Tests
This document shows you how to use Unit tests (UTs).
- Jasmine is a behavior-driven development framework for testing JavaScript code
- Chutzpah - A JavaScript Test Runner
How to run Unit tests
-
Download Chutzpah from [site] (http://chutzpah.codeplex.com/)
-
Extract archive to any folder
-
Get the source code from github (fork https://github.com/alterm4nn/ChronoZoom).
-
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