Sha256: 6c3b87297197696a3c566676d5cb2dea8d42dfa405df5de08d33c4907895f77f
Contents?: true
Size: 457 Bytes
Versions: 2
Compression:
Stored size: 457 Bytes
Contents
#!/usr/bin/env rake require 'bundler' require 'bundler/gem_tasks' require 'rspec/core/rake_task' # Rspec 单元测试 RSpec::Core::RakeTask.new(:spec) do Bundler.setup(:default, :test) end # 运行示例 task :example do FileList['example/**/*.rb'].each do |f| puts "==== Run example: #{f} ====" ruby f end end require 'rake/testtask' # 集成测试 Rake::TestTask.new do |t| t.pattern = 'test/**/*_test.rb' end task :default => :spec
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cos-0.1.2 | Rakefile |
cos-0.1.1 | Rakefile |