• If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Whenever you search in PBworks or on the Web, Dokkio Sidebar (from the makers of PBworks) will run the same search in your Drive, Dropbox, OneDrive, Gmail, Slack, and browsed web pages. Now you can find what you're looking for wherever it lives. Try Dokkio Sidebar for free.


Running Abbot Unit Tests

Page history last edited by Erich Ocean 13 years, 12 months ago

The new build tools also sport a full set of unit tests for the build tools themselves.  These are written using rspec.  Any changes you make to the build tools must include changes to the unit tests as well.  To run the unit tests, cd into the "abbot" directory and type:


rake spec


You can also run an individual unit test by doing


spec --color path/to/unit/test


All unit tests can be found in the "specs" directory.  


In general, we create one directory for each source .rb file in the "lib" directory of Abbot.  This directory contains a single _spec.rb file for each method that contains tests for that method.  For example, to find the unit tests for the SC::Target.manifest_for() method (defined in abbot/lib/sproutcore/models/target.rb), you should look in:




Comments (0)

You don't have permission to comment on this page.