File: Rakefile

package info (click to toggle)
ruby-jsonpath 1.0.5-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 220 kB
  • sloc: ruby: 1,327; makefile: 4
file content (23 lines) | stat: -rw-r--r-- 376 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# frozen_string_literal: true

desc 'run rubocop'
task(:rubocop) do
  require 'rubocop'
  cli = RuboCop::CLI.new
  cli.run
end

require 'simplecov'
SimpleCov.start do
  add_filter '/test/'
end

require 'bundler'
Bundler::GemHelper.install_tasks

task :test do
  $LOAD_PATH << 'lib'
  Dir['./test/**/test_*.rb'].each { |test| require test }
end

task default: %i[test rubocop]