mirror of
https://github.com/inspec/inspec
synced 2024-11-10 07:04:15 +00:00
isolate unit tests as rake default
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
This commit is contained in:
parent
72e3fbcb2a
commit
de2b4b1b01
1 changed files with 2 additions and 2 deletions
4
Rakefile
4
Rakefile
|
@ -18,7 +18,7 @@ task lint: [:rubocop]
|
|||
task default: :test
|
||||
Rake::TestTask.new do |t|
|
||||
t.libs << 'test'
|
||||
t.pattern = 'test/**/*_test.rb'
|
||||
t.pattern = 'test/unit/*_test.rb'
|
||||
t.warning = true
|
||||
t.verbose = true
|
||||
t.ruby_opts = ['--dev'] if defined?(JRUBY_VERSION)
|
||||
|
@ -26,7 +26,7 @@ end
|
|||
|
||||
namespace :test do
|
||||
task :isolated do
|
||||
Dir.glob('test/**/*_test.rb').all? do |file|
|
||||
Dir.glob('test/unit/*_test.rb').all? do |file|
|
||||
sh(Gem.ruby, '-w', '-Ilib:test', file)
|
||||
end or fail 'Failures'
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue