-
Notifications
You must be signed in to change notification settings - Fork 28
/
Rakefile
executable file
·58 lines (54 loc) · 1.7 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# frozen_string_literal: true
#--
# Rakefile
#
# Kraken Exchange API client written in Ruby
# Copyright (C) 2016-2021 Jon Atack <[email protected]>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.)
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.)
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# The author may be contacted by email: [email protected]
#++
require 'bundler/gem_tasks'
require 'rake/testtask'
# To run all tests:
# rake (or) rake test
#
# To run one test file:
# ruby -Ilib:test test/private_api_test.rb
# (or)
# rake test TEST=test/public_api_test.rb
#
# To run an individual test in a test file:
# ruby -Ilib:test test/public_api_test.rb -n test_get_server_time
# (or)
# rake test TEST=test/public_api_test.rb TESTOPTS=--name=test_get_server_time
#
desc 'Run all tests with `rake` or `rake test`'
task default: :test
Rake::TestTask.new(:test) do |t|
t.libs.push 'test'
t.test_files = FileList['test/**/*_test.rb']
end
desc 'Open an irb session with `rake console`'
task :console do
require 'irb'
require 'irb/completion'
ARGV.clear
IRB.start
end
require 'rubocop/rake_task'
RuboCop::RakeTask.new do |task|
task.requires << 'rubocop-minitest'
end