Sha256: 2fac1f139b548dae2abf60dbb8e9b6c13967d94ec198f6fe0452b38b86467f01

Contents?: true

Size: 1.07 KB

Versions: 6

Compression:

Stored size: 1.07 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"
        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 # class Test
end # module Cmd
end # module Dev

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dev-1.0.172 lib/dev/cmd/Test.rb
dev-1.0.171 lib/dev/cmd/Test.rb
dev-1.0.170 lib/dev/cmd/Test.rb
dev-1.0.169 lib/dev/cmd/Test.rb
dev-1.0.168 lib/dev/cmd/Test.rb
dev-1.0.167 lib/dev/cmd/Test.rb