加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Rakefile 1.49 KB
一键复制 编辑 原始数据 按行查看 历史
require 'rubygems'
require 'rake'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "testingmachine"
gem.summary = %Q{your trusty, tireless Testing Machine}
gem.description = %Q{your trusty, tireless Testing Machine}
gem.email = "wosmvp@gmail.com"
gem.homepage = "http://github.com/jinzhu/testingmachine"
gem.authors = ["Jinzhu"]
gem.add_dependency "minitest"
gem.add_dependency "capybara"
gem.files = FileList['lib/**/*']
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'testingmachine'
test.pattern = 'testingmachine/**/*_spec.rb'
test.verbose = true
end
begin
require 'rcov/rcovtask'
Rcov::RcovTask.new do |test|
test.libs << 'test'
test.pattern = 'test/**/test_*.rb'
test.verbose = true
end
rescue LoadError
task :rcov do
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
end
end
task :test => :check_dependencies
task :default => :test
require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "Testing Machine #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化