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

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

Running Abbot Unit Tests

Page history last edited by Erich Ocean 14 years, 10 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:

 

abbot/spec/lib/models/target/manifest_for_spec.rb

 

Comments (0)

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