Sha256: 9bd2836f3251a10d7eee53920eebb18865698ca6427e6d105b063c87ebd5ae67
Contents?: true
Size: 1.03 KB
Versions: 2
Compression:
Stored size: 1.03 KB
Contents
#!/usr/bin/env rake require 'bundler/gem_tasks' require 'rdoc/task' require 'rubocop/rake_task' require 'rspec/core/rake_task' RuboCop::RakeTask.new namespace :scripts do desc 'Run the Symbiont Watir script.' task :watir do system('ruby ./test/symbiont-with-watir.rb') end desc 'Run the Symbiont Capybara script.' task :capybara do system('ruby ./test/symbiont-with-capybara.rb') end desc 'Run all Symbiont scripts' task all: [:watir, :capybara] do end end namespace :spec do desc 'Clean all generated reports' task :clean do system('rm -rf spec/reports') end RSpec::Core::RakeTask.new(all: :clean) do |config| options = %w(--color) options += %w(--format documentation) options += %w(--format html --out spec/reports/symbiont-test-report.html) config.rspec_opts = options end end Rake::RDocTask.new do |rdoc| rdoc.rdoc_dir = 'doc' rdoc.main = 'README.md' rdoc.title = "Symbiont #{Symbiont::VERSION}" rdoc.rdoc_files.include('README*', 'lib/**/*.rb') end task default: ['spec:all']
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
symbiont-1.2.0 | Rakefile |
symbiont-1.1.2 | Rakefile |