-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathRakefile
31 lines (26 loc) · 852 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# frozen_string_literal: true
require 'rake'
# The obsolete way to describe tests
require_relative 'spec/rake_helper'
# The obsolete way to describe tests
# Bunch of tasks described as do...end block:
# 1) Tasks description:
# task :task_generator do |t| RakeTaskManager.new(t).run_unit end
# ...
# 2) Task execution:
# Rake::Task[:task_generator].execute
# ...
require_relative 'spec/unit_tasks'
require_relative 'spec/unit_parametrized_tasks'
require_relative 'spec/integration_tasks'
# Using Rpec test runner to run new tests for the application
begin
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |task|
task.pattern = 'spec/new/**{,/*/**}/*_spec.rb'
end
RSpec::Core::RakeTask.new(:system_spec) do |task|
task.pattern = 'spec/system/**{,/*/**}/*_spec.rb'
end
rescue LoadError
end