Sha256: e49eba367aedb76ad2db782e9143c8414b017945891db2b3c7d6bee0968d6cfa

Contents?: true

Size: 1.42 KB

Versions: 19

Compression:

Stored size: 1.42 KB

Contents

module Dev
module Cmd
class Test < Array
  def refresh
    strip_auto_entries

	if(Dir.glob("**/*.spec").count > 0) #if DEV.has_key?(:file_count) && DEV[:file_count].has_key?(:spec) && DEV[:file_count][:spec] > 0
	  rspec_cmd='rspec --pattern="**/*.spec"'
	  self << "{:cmd=>'#{rspec_cmd}', :auto=>true}"
	end
      
	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|
	  platforms=Dev::MsBuild.extract_platforms(cs)
	  platforms.each { |platform|
	    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")
		  self << "{:cmd-> 'mono <paths,nunit> #{dll_name}', :auto=>true}" if !RUBY_PLATFORM.include?("w32")
		end
	  }  
    }

  end
end # class Test
end # module Cmd
end # module Dev

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
dev-1.0.237 lib/dev/cmd/Test.rb
dev-1.0.236 lib/dev/cmd/Test.rb
dev-1.0.235 lib/dev/cmd/Test.rb
dev-1.0.233 lib/dev/cmd/Test.rb
dev-1.0.232 lib/dev/cmd/Test.rb
dev-1.0.231 lib/dev/cmd/Test.rb
dev-1.0.230 lib/dev/cmd/Test.rb
dev-1.0.229 lib/dev/cmd/Test.rb
dev-1.0.228 lib/dev/cmd/Test.rb
dev-1.0.227 lib/dev/cmd/Test.rb
dev-1.0.225 lib/dev/cmd/Test.rb
dev-1.0.224 lib/dev/cmd/Test.rb
dev-1.0.223 lib/dev/cmd/Test.rb
dev-1.0.222 lib/dev/cmd/Test.rb
dev-1.0.221 lib/dev/cmd/Test.rb
dev-1.0.220 lib/dev/cmd/Test.rb
dev-1.0.219 lib/dev/cmd/Test.rb
dev-1.0.218 lib/dev/cmd/Test.rb
dev-1.0.217 lib/dev/cmd/Test.rb