lib/dev/cmd/Test.rb in dev-1.0.214 vs lib/dev/cmd/Test.rb in dev-1.0.217
- old
+ new
@@ -11,13 +11,14 @@
Dir.glob("*.gemspec").each { |gs|
self << "{:cmd=>'gem install #{gs.gsub('.gemspec','')}-#{DEV[:version]}.gem', :capture_output=>true, :auto=>true}"
}
- Dir.glob("*.{Test.csproj,Features.csproj}").each { |cs|
+ Dir.glob("**/*.{Test.csproj,Features.csproj}").each { |cs|
platforms=Dev::MsBuild.extract_platforms(cs)
platforms.each { |platform|
- dll_name="#{DEV[:directory]}/bin/#{platform}/Release/#{File.basename(cs,'.csproj')}.dll"
+ proj_path=File.dirname(cs)
+ dll_name="#{proj_path}/bin/#{platform}/Release/#{File.basename(cs,'.csproj')}.dll"
if platform=="x86"
self << "{:cmd=> '<paths,nunitx86> /xml:#{dll_name}.nunit-results.xml #{dll_name}', :auto=>true, :capture_output=>true, :capture_error=>true}" if RUBY_PLATFORM.include?("w32")
self << "{:cmd-> 'mono <paths,nunitx86> #{dll_name}', :auto=>true}" if !RUBY_PLATFORM.include?("w32")
else
self << "{:cmd=> '#{DEV[:paths][:nunit]} /xml:#{dll_name}.nunit-results.xml #{dll_name}', :auto=>true, :capture_output=>true, :capture_error=>true}" if RUBY_PLATFORM.include?("w32")
\ No newline at end of file