Skip to content
Rob Giseburt edited this page May 23, 2015 · 8 revisions

Installation

These are instructions for OSX Yosemite (OSX 10.10). It might work on 10.9. We found this failed on OSX 10.8.5.

  • Install nodeJS from here: http://nodejs.org/download/

  • Once its all downloaded and installed clone this repo like normal
    git clone https://github.com/synthetos/tinyg-testing-framework.git

  • Open a terminal window and cd into the tinyg-testing-framework/ directory
    cd tinyg-testing-framework/

  • At the terminal run
    npm install

This will get (almost) everything you need to run.

You can optionally install jasmine to be run globally:

  • sudo npm install -g jasmine

After that is complete you should be able to run jasmine at the command line and it will attempt to run the tests matching spec/"**/*[sS]pec.js".

  • Now run the test
jasmine

# OR, if you chose to not install jasmine globally, it's available locally:
node_modules/.bin/jasmine

Jasmine looks at the spec/support/jasmine.json, which specifies what files to load.

We have a running document on the format of our YAML files here.

###Using the Node TinyG G Console Directly You may need to update the tinyg module first:
sudo npm install -g tinyg

Then just call g directly to get a console:
g

A problem right now is that status reports are "lost" when you don't specify a log file. If you want to see it in line, you specify stderr:
g -g /dev/stderr

Hit ^c to exit. If there's motion the first ^c will send a ! feedhold first.

Clone this wiki locally