forked from rbuchberger/jekyll_picture_tag
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
33 lines (27 loc) · 811 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
32
33
# Since we have two gemfiles, we can't just require 'bundler/gem_tasks'. We have
# to explicitly set its name and install them:
require 'bundler/gem_helper'
Bundler::GemHelper.install_tasks name: 'jekyll_picture_tag'
require 'rake/testtask'
require 'rubocop/rake_task'
# Run all tests
Rake::TestTask.new(:test) do |t|
t.libs << 'test'
t.libs << 'lib'
t.test_files = FileList['test/**/test_*.rb']
end
# Run only unit tests
Rake::TestTask.new(:unit) do |t|
t.libs << 'test'
t.libs << 'lib'
t.test_files = FileList['test/unit/**/test_*.rb']
end
# Run only integration tests
Rake::TestTask.new(:integration) do |t|
t.libs << 'test'
t.libs << 'lib'
t.test_files = FileList['test/integration/**/test_*.rb']
end
RuboCop::RakeTask.new
# Runs all tests and rubocop
task default: %i[test rubocop]