mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-08-24 12:09:56 +00:00
Allow summarizer to search through subdirectories for results files
This commit is contained in:
@@ -122,7 +122,7 @@ if $0 == __FILE__
|
|||||||
begin
|
begin
|
||||||
#look in the specified or current directory for result files
|
#look in the specified or current directory for result files
|
||||||
ARGV[0] ||= './'
|
ARGV[0] ||= './'
|
||||||
targets = "#{ARGV[0].gsub(/\\/, '/')}*.test*"
|
targets = "#{ARGV[0].gsub(/\\/, '/')}**/*.test*"
|
||||||
results = Dir[targets]
|
results = Dir[targets]
|
||||||
raise "No *.testpass or *.testfail files found in '#{targets}'" if results.empty?
|
raise "No *.testpass or *.testfail files found in '#{targets}'" if results.empty?
|
||||||
uts.set_targets(results)
|
uts.set_targets(results)
|
||||||
|
|||||||
Reference in New Issue
Block a user