Sha256: 2f4b62280aca4e7a5194f9e679a0261333bf1c583f19ff90c2b654431cefb04c
Contents?: true
Size: 694 Bytes
Versions: 2
Compression:
Stored size: 694 Bytes
Contents
# Setup Tests namespace :test do desc "Test Discovery plugin" Rake::TestTask.new(:discovery) do |t| test_dir = File.join(File.dirname(__FILE__), '..', 'test') t.libs << ["test",test_dir] if ENV['FILE'] || ENV['TEST'] t.pattern = ENV['FILE'] || ENV['TEST'] else t.pattern = "#{test_dir}/**/*_test.rb" end t.verbose = true t.warning = false end end Rake::Task[:test].enhance do Rake::Task['test:discovery'].invoke end load 'tasks/jenkins.rake' if Rake::Task.task_defined?(:'jenkins:unit') # The "unit" tests also include system tests Rake::Task["jenkins:unit"].enhance(['webpack:compile']) do Rake::Task['test:discovery'].invoke end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
foreman_discovery-23.0.2 | lib/discovery.rake |
foreman_discovery-23.0.1 | lib/discovery.rake |