Skip to content

Test_Getting started with BL tests

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

Getting started with BL tests

This document shows you how to use Business Logic tests (BLTs). BLTs are implemented using JavaScript and the Jasmine framework, and are used to check the base functionality of the ChronoZoom project.

Tools

  • Jasmine - A behavior-driven development framework for testing JavaScript code.
  • Chutzpah - An open source JavaScript test runner which helps you integrate JavaScript unit testing into your website.

How to run BL tests

  1. Download Chutzpah from Codeplex

  2. Extract the archive to any folder.

  3. Get the source code from github (fork https://github.com/alterm4nn/ChronoZoom). For more information see Clone the ChronoZoom GitHub Repository.

  4. Build the Test\chronozoom20.test\Tests.BL\Tests.BL.csproj project.(All required packages will be installed). You can use MsBuild.exe to build the project. The following example shows the relative path to Tests.BL.csproj:

    [pathToMsBuild]\MsBuild.exe [Chronozoom solution dir]\Test\chronozoom20.test\Tests.BL\Tests.BL.csproj

  5. Run Chutzpah for *Test\chronozoom20.test\Tests.BL\Scripts\Specs* from command line (cmd.exe) using the following syntax:

    [Path to unpackaged chutzpah]\chutzpah.console.exe [Chronozoom solution dir]\Test\chronozoom20.test\Tests.BL\Scripts\Specs\

    To view results in your browser, use the "/openInBrowser" key:

    [Path to extracted chutzpah]\chutzpah.console.exe [solution dir]\Test\chronozoom20.test\Tests.BL\Scripts\Specs\ /openInBrowser

Reference: All chutzpah Command Line Options Reference: Video Manuals