Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

33 lines (25 sloc) 0.77 kb
# encoding: utf-8
require 'rubygems'
require 'bundler'
Bundler.setup
Bundler::GemHelper.install_tasks
require 'cucumber/rake/task'
Cucumber::Rake::Task.new do |t|
t.cucumber_opts = ""
t.cucumber_opts = "--format Cucumber::Pro --out cucumber-pro.log" if ENV['CUCUMBER_PRO_TOKEN']
t.cucumber_opts << "--format pretty"
end
Cucumber::Rake::Task.new(:cucumber_wip) do |t|
t.cucumber_opts = "-p wip"
end
require 'rspec/core/rake_task'
desc "Run RSpec"
RSpec::Core::RakeTask.new do |spec|
spec.pattern = 'spec/**/*_spec.rb'
spec.rspec_opts = ['--color', '--format documentation']
end
require 'rubocop/rake_task'
RuboCop::RakeTask.new
desc "Run tests, both RSpec and Cucumber"
task :test => [ :rubocop, :spec, :cucumber, :cucumber_wip]
task :default => :test
Jump to Line
Something went wrong with that request. Please try again.