diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2023-12-17 15:05:47 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2023-12-17 15:05:47 +0000 |
commit | e566e60e51a740387261a06fe800fefece750fb1 (patch) | |
tree | 5cd940235f90af265d85573518f25a8beebe1bc2 /lib/tasks | |
parent | 4cc0b8d2ca80f4de3a0217184e9ef982f2407c05 (diff) | |
download | redmine-e566e60e51a740387261a06fe800fefece750fb1.tar.gz redmine-e566e60e51a740387261a06fe800fefece750fb1.zip |
Adds test for plugin autoload issue (#36320, #39834).
Patch by @tohosaku.
git-svn-id: https://svn.redmine.org/redmine/trunk@22522 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/tasks')
-rw-r--r-- | lib/tasks/testing.rake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/tasks/testing.rake b/lib/tasks/testing.rake index 5b5cedb46..2d946b355 100644 --- a/lib/tasks/testing.rake +++ b/lib/tasks/testing.rake @@ -114,4 +114,11 @@ namespace :test do Rails::TestUnit::Runner.run_from_rake 'test', FileList['test/integration/routing/*_test.rb'] + FileList['test/integration/api_test/*_routing_test.rb'] end Rake::Task['test:routing'].comment = "Run the routing tests" + + task(:autoload) do |t| + $: << "test" + ENV["REDMINE_PLUGINS_DIRECTORY"] = "test/fixtures/plugins" + Rails::TestUnit::Runner.run_from_rake 'test', FileList['test/autoload/*_test.rb'] + end + Rake::Task['test:autoload'].comment = "Run the plugin autoload tests" end |