Prototype: run tests in defined order by sorting by filename, #7141

This commit is contained in:
Thomas Fuchs 2007-03-27 18:50:43 +00:00
parent 296cada736
commit ab4bb656e1
1 changed files with 1 additions and 1 deletions

View File

@ -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)