2018-09-28 14:10:19 -04:00
|
|
|
require "bundler/setup"
|
|
|
|
require "cucumber/rake/task"
|
|
|
|
require "rspec/core/rake_task"
|
2020-06-05 15:49:21 -04:00
|
|
|
require "standard/rake"
|
2010-06-09 11:42:48 -04:00
|
|
|
|
2018-09-28 14:10:19 -04:00
|
|
|
Bundler::GemHelper.install_tasks name: "factory_bot_rails"
|
2016-12-02 10:25:09 -05:00
|
|
|
|
2010-06-09 11:42:48 -04:00
|
|
|
Cucumber::Rake::Task.new(:cucumber) do |t|
|
|
|
|
t.fork = true
|
2018-09-28 14:10:19 -04:00
|
|
|
t.cucumber_opts = ["--format", (ENV["CUCUMBER_FORMAT"] || "progress")]
|
2010-06-09 11:42:48 -04:00
|
|
|
end
|
|
|
|
|
2018-07-16 18:31:25 -04:00
|
|
|
RSpec::Core::RakeTask.new(:spec)
|
|
|
|
|
2020-06-05 15:49:21 -04:00
|
|
|
desc "Run the test suite and standard"
|
|
|
|
task default: %w[spec cucumber standard]
|