To get started with Ruby testing, I am using RSpec ruby framework.
http://rspec.info/
To use RSpec, first you will need to have the gem "guard" which is a command line tool to work with RSpec.
$ gen install guard.
$ bundle exec guard list
This will give you a list of frameworks installed and ready for guard to work with.
After that run
$ bundle exec guard.
This will take you to the guard prompt . Do the following to run all tests.
$ guard(main)> all rspec.
You are up and running!
http://rspec.info/
To use RSpec, first you will need to have the gem "guard" which is a command line tool to work with RSpec.
$ gen install guard.
$ bundle exec guard list
This will give you a list of frameworks installed and ready for guard to work with.
After that run
$ bundle exec guard.
This will take you to the guard prompt . Do the following to run all tests.
$ guard(main)> all rspec.
You are up and running!
No comments:
Post a Comment