Skip to content
eventualbuddha edited this page Apr 12, 2011 · 5 revisions

OJAutotest is a tool that automatically runs relevant tests as you develop your Cappuccino application. It is intended to be used as a developer tool the reduces the time you receive feedback about your tests and to reduce the number of keystrokes it takes to run your tests.

Installation

sudo tusk install https://github.com/chandlerkent/fsevents/zipball/master https://github.com/chandlerkent/growl-js/zipball/master https://github.com/280north/OJTest/zipball/master

Requirements

  • Mac OS X
  • OJUnit (comes with OJTest)
  • Narwhal (comes with Cappuccino)
  • FSEvents
  • Growl-JS

Configuration

OJAutotest is built to be configurable. It will look for a file called “.ojautotest” in the current directory for its configuration options. These options are specified using JSON notation. These are the currently supported options:

  • watch: An array of directories to watch for changes. Default is [“Test”].

Sample Configuration File

The following is a sample configuration file.

{
    "watch": ["Test", "lib"]
}

Tips

  • You have to put all of your tests that you want OJAutotest to run in the “Test” folder.
  • OJAutotest should be run from the top level of your Cappuccino application.
  • For forward-compatibility, your filenames should be suffixed with “Test.” E.g. “AppController.j” => “AppControllerTest.j”
Clone this wiki locally