-
Notifications
You must be signed in to change notification settings - Fork 1
Home
marcoow edited this page Sep 13, 2010
·
3 revisions
See test
, spec
and features
directories for samples and comparison of Test::Unit, RSpec and Cucumber.
The application itself is pretty trivial and only has a Task
model with a title
and a finished
flag. The controller allows to view, add and finish tasks. Deletion and editing of tasks is not implemented.
Run unit tests:
rake test:units
Run functional tests:
rake test:functionals
Run integration tests:
rake test:integration
Run all of the above:
rake test
Run model specs:
rake spec:models
Run controller specs:
rake spec:controllers
Run view specs:
rake spec:views
Run all of the above:
rake spec
Run code coverage analysis on specs:
rake spec:rcov
Run features:
rake features
sudo gem install rspec
sudo gem install rspec-rails
sudo gem install cucumber
sudo gem install webrat
sudo gem install rcov
Copyright © 2008 Marco Otte-Witte ("http://simplabs.com ":http://simplabs.com), released under the MIT license