Sha256: a67673d51fd0510b961b582656158dbcd85aab9084e5c413f058e53080f68bf9

Contents?: true

Size: 1.39 KB

Versions: 40

Compression:

Stored size: 1.39 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|
	    dll_name="#{DEV[:directory]}/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=> '<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

40 entries across 40 versions & 1 rubygems

Version Path
dev-1.0.213 lib/dev/cmd/Test.rb
dev-1.0.212 lib/dev/cmd/Test.rb
dev-1.0.211 lib/dev/cmd/Test.rb
dev-1.0.210 lib/dev/cmd/Test.rb
dev-1.0.209 lib/dev/cmd/Test.rb
dev-1.0.208 lib/dev/cmd/Test.rb
dev-1.0.207 lib/dev/cmd/Test.rb
dev-1.0.206 lib/dev/cmd/Test.rb
dev-1.0.205 lib/dev/cmd/Test.rb
dev-1.0.204 lib/dev/cmd/Test.rb
dev-1.0.203 lib/dev/cmd/Test.rb
dev-1.0.202 lib/dev/cmd/Test.rb
dev-1.0.201 lib/dev/cmd/Test.rb
dev-1.0.200 lib/dev/cmd/Test.rb
dev-1.0.199 lib/dev/cmd/Test.rb
dev-1.0.198 lib/dev/cmd/Test.rb
dev-1.0.197 lib/dev/cmd/Test.rb
dev-1.0.196 lib/dev/cmd/Test.rb
dev-1.0.195 lib/dev/cmd/Test.rb
dev-1.0.194 lib/dev/cmd/Test.rb