2022-10-22 22:30:40 +01:00
|
|
|
require "minitest/test_task"
|
|
|
|
|
2023-07-19 15:14:46 +01:00
|
|
|
HERE = __dir__
|
2022-11-25 17:57:56 +00:00
|
|
|
|
2022-10-22 22:30:40 +01:00
|
|
|
Minitest::TestTask.create(:test) do |t|
|
|
|
|
t.libs << "test"
|
|
|
|
t.warning = false
|
2023-08-11 14:44:51 +01:00
|
|
|
t.test_globs = ["test/**/test_*.rb"]
|
2022-10-22 22:30:40 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
task default: :test
|
2023-08-11 14:44:51 +01:00
|
|
|
|
|
|
|
namespace :e do
|
|
|
|
desc "Runs the events example"
|
|
|
|
task :events do
|
|
|
|
filepath = File.join(HERE, "examples", "events", "main.rb")
|
|
|
|
ruby filepath
|
|
|
|
end
|
|
|
|
desc "Runs the levels example"
|
|
|
|
task :levels do
|
|
|
|
filepath = File.join(HERE, "examples", "levels", "main.rb")
|
|
|
|
ruby filepath
|
|
|
|
end
|
|
|
|
desc "Runs the scene_rotate example"
|
|
|
|
task :scene_rotate do
|
|
|
|
filepath = File.join(HERE, "examples", "scene_rotate", "main.rb")
|
|
|
|
ruby filepath
|
|
|
|
end
|
2022-11-25 17:57:56 +00:00
|
|
|
end
|