Skip to content

Console Runner Quickstart

pavsaund edited this page Jan 30, 2013 · 3 revisions

#Quickstart# This is a simplified guide to getting started with the Forseti console runner in windows. Consider this a living document, and please let us know if you encounter any issues

1. Download Forseti.Console

Head over to the download page and grab a copy of Forseti.Console.zip Place unpacked files in a well-known place. We like to place it within our projects Tools folder. Here's a simplified structure one might use. But you could just as easily place this somewhere else and make it available in your PATH

|-src\
  |-forseti.yaml
  |-scripts\
    |-system.js
    |-another_system.js
|-tests\
  |-for_system\
    |-when_testing_something.js
  |-for_another_system\
    |-when_creating.js
    |-when_initializing.js
|-tools\
  |-Forseti\
    |-Forseti.exe
    |-...

2. Configure your conventions

Create your forseti.yaml configuration at the root of your project. The configuration points at conventions for system and description files, so all paths are relative to its placement. More configuration options

Harnesses:
  - Harness:
      Framework                 : Jasmine
      Name                      : Something
      SystemsSearchPath         : src/scripts/{system}.js
      DescriptionsSearchPath    : tests/for_{system}/{description}.js
      Dependencies              :
        - src/scripts/jquery.js

3. Start runner

Run forseti.exe from folder containing your configuration file to start watching files for changes.

C:\projects\TestProject\> Tools\Forseti\Forseti.exe

HAPPY TESTING!