Skip to content

Commit

Permalink
added rake task for running test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
jphager2 committed Apr 23, 2014
1 parent 0a08d9c commit 038190f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions rakefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
require_relative 'db/tasks/db-tasks.rb'
require 'rake'

task :run_all_tests do
Dir.glob('test/*.rb').each {|file| load file}
end

task :delete_sgfs do
Dir.glob('*.sgf').each {|file| File.delete(file)}
end

task default: [:run_all_tests]
2 changes: 1 addition & 1 deletion test/pawn_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require_relative 'chess'
require_relative '../lib/chess'

require 'minitest/autorun'

Expand Down
2 changes: 1 addition & 1 deletion test/queen_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require_relative 'chess'
require_relative '../lib/chess'

require 'minitest/autorun'

Expand Down

0 comments on commit 038190f

Please sign in to comment.