From 1ff470c790ef8dc313ef7140dc7f3a3bf4e93e28 Mon Sep 17 00:00:00 2001 From: Jakub Pavlik Date: Fri, 12 Jun 2020 23:57:00 +0200 Subject: [PATCH] rake: task to run Cucumber; readme: running tests --- README.md | 8 ++++++++ Rakefile | 3 +++ 2 files changed, 11 insertions(+) diff --git a/README.md b/README.md index 7fa77b1..670d08f 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,14 @@ Print liturgical calendar for the current month: `$ calrom 2028-01-15` +## Running tests + +Clone the repository, `$ bundle install` to install dependencies, then: + +`$ rake cucumber` - run specs describing the command line interface + +`$ rake spec` - run specs describing internal implementation details + ## Project roadmap * [ ] detailed listing of a day/month/year/range of dates diff --git a/Rakefile b/Rakefile index b7e9ed5..afad543 100644 --- a/Rakefile +++ b/Rakefile @@ -1,6 +1,9 @@ require "bundler/gem_tasks" require "rspec/core/rake_task" +require "cucumber/rake/task" RSpec::Core::RakeTask.new(:spec) +Cucumber::Rake::Task.new + task :default => :spec