Sha256: 43977ea2eabe9f2ee5832674a15b4b568608c98207d95c8c1ba43310fd78527a

Contents?: true

Size: 952 Bytes

Versions: 1

Compression:

Stored size: 952 Bytes

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|
        dll_name="#{DEV[:directory]}/bin/x86/Release/#{File.basename(cs,'.csproj')}.dll"
        self << "{:cmd=> '<paths,nunit> /xml:#{dll_name}.nunit-results.xml #{dll_name}', :auto=>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

1 entries across 1 versions & 1 rubygems

Version Path
dev-1.0.156 lib/dev/cmd/Test.rb