test-unit/lib/test/unit/collector/load.rb in activeldap-1.1.0 vs test-unit/lib/test/unit/collector/load.rb in activeldap-1.2.0
- old
+ new
@@ -74,10 +74,12 @@
next if excluded_directory?(child.basename.to_s)
sub_test_suite = collect_recursive(child, already_gathered)
sub_test_suites << sub_test_suite unless sub_test_suite.empty?
end
else
- collect_file(path, sub_test_suites, already_gathered)
+ unless excluded_file?(path.basename.to_s)
+ collect_file(path, sub_test_suites, already_gathered)
+ end
end
test_suite = TestSuite.new(path.basename.to_s)
sort(sub_test_suites).each do |sub_test_suite|
test_suite << sub_test_suite