我试图按顺序运行test_files中的rake规范,如下面的代码中的file1,file2,但是当我执行rake test
时它们会随机运行。
require 'rake/testtask'
Rake::TestTask.new do |t|
t.test_files = [
"specs/file1_spec.rb",
"specs/file2_spec.rb",
"specs/file3_spec.rb",
"specs/file4_spec.rb",
"specs/file5_spec.rb"]
end