From ab4bb656e16b4b76367ab835ddc72d12cb40ef5c Mon Sep 17 00:00:00 2001 From: Thomas Fuchs Date: Tue, 27 Mar 2007 18:50:43 +0000 Subject: [PATCH] Prototype: run tests in defined order by sorting by filename, #7141 --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index f032d17..9d65f06 100644 --- a/Rakefile +++ b/Rakefile @@ -43,7 +43,7 @@ JavaScriptTestTask.new(:test_units) do |t| t.mount("/dist") t.mount("/test") - Dir["test/unit/*.html"].each do |test_file| + Dir["test/unit/*.html"].sort.each do |test_file| test_file = "/#{test_file}" test_name = test_file[/.*\/(.+?)\.html/, 1] t.run(test_file) unless tests_to_run && !tests_to_run.include?(test_name)