Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Neeraj Singh authored and schof committed Jan 24, 2011
1 parent 6573a5c commit 19c1d83
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions README.md
Expand Up @@ -92,6 +92,13 @@ The source code is essentially a collection of gems. Spree is meant to be run w
Running Tests
-------------

If you want to run all the tests across all the gems then

$ cd spree
$ rake spec #=> 'this will run spec tests for all the gems'
$ rake cucumber #=> 'this will run cucumber tests for all the gems'
$ rake #=> 'this will run both spec and cucumber tests for all the gems'

Each gem contains its own series of tests, and for each directory, you need to do a quick one-time
creation of a test application and then you can use it to run the tests. For example, to run the
tests for the core project.
Expand All @@ -100,13 +107,20 @@ tests for the core project.
$ rake test_app
$ rake spec
$ rake cucumber
$ rake #=> 'this will run both spec and cucumber tests for the gem'

If you want to run all the tests across all the gems then
# If you want to run specs for only a single spec file
$ bundle exec rspec spec/models/state_spec.rb

# If you want to run a particular line of spec
$ bundle exec rspec spec/models/state_spec.rb:7

# If you want to run a single cucumber feature
# bundle exec cucumber features/admin/orders.feature --require features

# If you want to run a particular scenario then include the line number
# bundle exec cucumber features/admin/orders.feature:3 --require features

$ cd spree
$ rake spec #=> 'this will run spec tests for all the gems'
$ rake cucumber #=> 'this will run cucumber tests for all the gems'
$ rake #=> 'this will run both spec and cucumber tests for all the gems'

Contributing
------------
Expand Down

0 comments on commit 19c1d83

Please sign in to comment.