Sha256: 1ffd91fa35391d6ff1d3a9589b9b6c1a53939ba650f9a5cfefd58301f9f7a61a
Contents?: true
Size: 1.2 KB
Versions: 2
Compression:
Stored size: 1.2 KB
Contents
require "rspec/core/rake_task" desc "すべてのテスト" RSpec::Core::RakeTask.new(:spec) do |t| end desc "alias to spec" task :default => :spec desc "alias to spec:core" task :c => "spec:core" namespace :spec do task :fast => :core desc "重要なところだけのテスト" RSpec::Core::RakeTask.new(:core) do |t| # t.exclude_pattern = "spec/**/{animation,image}*_spec.rb" # t.rspec_opts = "-f d -t ~animation --fail-fast" t.rspec_opts = "-f d -t ~screen_image -t ~animation -t ~tactic -t ~transform" end desc "戦法判定" RSpec::Core::RakeTask.new(:tactic) do |t| t.rspec_opts = "-f d --fail-fast -t tactic" end desc "棋譜変換のテスト(TRANSFORM_OUTPUT=1 で expected を生成)" RSpec::Core::RakeTask.new(:transform) do |t| t.rspec_opts = "-f d -t transform" end desc "画像変換のテスト" RSpec::Core::RakeTask.new(:screen_image) do |t| # t.pattern = "spec/**/{screen_image,image}*_spec.rb" t.rspec_opts = "-f d --fail-fast -t screen_image" end desc "動画変換のテスト" RSpec::Core::RakeTask.new(:animation) do |t| # t.pattern = "spec/**/{animation,image}*_spec.rb" t.rspec_opts = "-f d --fail-fast -t animation" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bioshogi-0.0.15 | lib/bioshogi/tasks/spec.rake |
bioshogi-0.0.14 | lib/bioshogi/tasks/spec.rake |