Class: RedminePluginsHelper::TestTasks::Minitest

Inherits:
Base
  • Object
show all
Defined in:
lib/redmine_plugins_helper/test_tasks/minitest.rb

Constant Summary

Constants inherited from Base

Base::DEFAULT_TASK_NAME_LAST_PART, Base::PREPARE_TASK_NAME

Instance Method Summary collapse

Methods inherited from Base

#plugin_root, #prepare_task_name, register, #task_full_name

Instance Method Details

#registerObject



10
11
12
13
14
15
16
17
18
# File 'lib/redmine_plugins_helper/test_tasks/minitest.rb', line 10

def register
  ::Rake::TestTask.new(task_full_name => 'db:test:prepare') do |t|
    t.description = "Run plugin #{plugin_id}'s tests."
    t.libs << 'test'
    t.test_files = ::FileList["#{plugin_root}/test/**/*_test.rb"]
    t.verbose = false
    t.warning = false
  end
end