-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
43 lines (37 loc) · 1.2 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
begin
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
task default: :spec
rescue LoadError # rubocop:disable Lint/SuppressedException
end
namespace :db do
desc 'Apply changes to the database'
task :migrate do
require 'inferno/config/application'
require 'inferno/utils/migration'
Inferno::Utils::Migration.new.run
end
end
namespace :carin4bb do
desc 'Test Generator'
task :generate do
require_relative 'lib/carin_for_blue_button_test_kit/generator'
CarinForBlueButtonTestKit::Generator.generate
end
end
namespace :requirements do
desc 'Generate requirements coverage CSV'
task :generate_coverage do
require 'inferno'
Inferno::Application.start(:suites)
require_relative 'lib/inferno_requirements_tools/tasks/requirements_coverage'
InfernoRequirementsTools::Tasks::RequirementsCoverage.new.run
end
desc 'Check if requirements coverage CSV is up-to-date'
task :check_coverage do
require 'inferno'
Inferno::Application.start(:suites)
require_relative 'lib/inferno_requirements_tools/tasks/requirements_coverage'
InfernoRequirementsTools::Tasks::RequirementsCoverage.new.run_check
end
end