joncodo / Crib

A crib engine to play the card game crib with AI and a card counter
3 stars 2 forks source link

Create a Rakefile #8

Closed scott-steadman closed 10 years ago

scott-steadman commented 10 years ago

This will allow you to use rake to automate testing and code coverage.

I suggesting adding a test and coverage task.

rake test # run all tests rake coverage # generate a code coverage report using simplecov

Example Rakefile snippet:

desc 'Generate coverage report'
task :coverage do
  ENV['COVERAGE'] = 'true'
  system('rake test')
end