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:
abbot/spec/lib/models/target/manifest_for_spec.rb
Comments (0)
You don't have permission to comment on this page.