Sha256: 8b14fc3167741e7832c201ac58ab60875ff2d660a98410a0334825ee3256a641

Contents?: true

Size: 1.18 KB

Versions: 7

Compression:

Stored size: 1.18 KB

Contents

require "rspec/core/rake_task"

desc "すべてのテスト"
RSpec::Core::RakeTask.new(:test) do |t|
end
desc "alias to test"
task :default => :test

desc "alias to test:core"
task :c => "test:core"

namespace :test do
  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

7 entries across 7 versions & 1 rubygems

Version Path
bioshogi-0.0.10 lib/bioshogi/tasks/test.rake
bioshogi-0.0.9 lib/bioshogi/tasks/test.rake
bioshogi-0.0.8 lib/bioshogi/tasks/test.rake
bioshogi-0.0.7 lib/bioshogi/tasks/test.rake
bioshogi-0.0.5 lib/bioshogi/tasks/test.rake
bioshogi-0.0.4 lib/bioshogi/tasks/test.rake
bioshogi-0.0.3 lib/bioshogi/tasks/test.rake