mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Add support for guard and spring
guard encourages TDD behaviour through development iterations which include continuous testing. Coupling this with spring eliminates the cost of continually loading gems into a fresh environment every time the tests are run.
This commit is contained in:
parent
08d4bb848b
commit
ed10045fad
4 changed files with 124 additions and 5 deletions
|
|
@ -51,7 +51,9 @@ xdg-open doc/app/index.html
|
|||
```
|
||||
|
||||
## Testing
|
||||
We are using [rspec](http://rspec.info/)+[capybara](http://jnicklas.github.io/capybara/)+[factory girl](https://github.com/thoughtbot/factory_girl) as test suite. You *should* run it, whenever you change something, with
|
||||
We are using [rspec](http://rspec.info/)+[capybara](http://jnicklas.github.io/capybara/)+[factory girl](https://github.com/thoughtbot/factory_girl) to build test suite. You *should* run it continuously when you are developing, via:
|
||||
```
|
||||
bundle exec rake rspec
|
||||
bundle exec guard
|
||||
```
|
||||
This uses [spring](https://github.com/rails/spring) to provide a
|
||||
[fast feedback loop for the red/green cycle](http://bitzesty.com/blog/2013/05/enable-tdd-with-faster-ruby-on-rails-stack-reloading/).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue