Project

General

Profile

Actions

Patch #11534

closed

rake redmine:plugins:test:* could use "pattern" instead of "test_files"

Added by Jean-Baptiste Barth over 12 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Low
Category:
Plugin API
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

It's a lot less verbose so it's more readable when running plugin tests, and it's more similar to what's done in rails core.

So in lib/tasks/redmine.rake, we would replace:

t.test_files = FileList["plugins/#{ENV['NAME'] || '*'}/test/unit/*_test.rb"]
with
t.pattern = "plugins/#{ENV['NAME'] || '*'}/test/unit/*_test.rb" 
and so on.

Let me know if there's any objection, if not I'll commit that in a few days.

Actions

Also available in: Atom PDF