From 126bf6115761736e20bc522ddb7d8d94e3f472b1 Mon Sep 17 00:00:00 2001 From: Neil Stalker Date: Mon, 24 Jun 2013 21:03:34 +0100 Subject: [PATCH] Update test runner to process files alphabetically --- _infrastructure/tests/runner.js | 4 ++-- _infrastructure/tests/runner.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/_infrastructure/tests/runner.js b/_infrastructure/tests/runner.js index 8b1ff53ddb..d0a23087a7 100644 --- a/_infrastructure/tests/runner.js +++ b/_infrastructure/tests/runner.js @@ -567,7 +567,7 @@ var DefinitelyTyped; this.path = path; this.files = []; this.typings = []; - this.files = IO.dir(path, pattern, { recursive: true }); + this.files = IO.dir(path, pattern, { recursive: true }).sort(); } FileHandler.prototype.allTS = function () { return this.files; @@ -716,7 +716,7 @@ var DefinitelyTyped; }; Print.prototype.printSyntaxErrorCount = function (current, total) { - this.out(' \33[36m\33[1mSyntaxe error :\33[0m \33[31m\33[1m' + ((current / total) * 100).toFixed(2) + '% (' + current + '/' + total + ')\33[0m\n'); + this.out(' \33[36m\33[1mSyntax error :\33[0m \33[31m\33[1m' + ((current / total) * 100).toFixed(2) + '% (' + current + '/' + total + ')\33[0m\n'); }; Print.prototype.printTestErrorCount = function (current, total) { diff --git a/_infrastructure/tests/runner.ts b/_infrastructure/tests/runner.ts index 175194755d..8d0eeae142 100644 --- a/_infrastructure/tests/runner.ts +++ b/_infrastructure/tests/runner.ts @@ -55,7 +55,7 @@ module DefinitelyTyped { public typings: Typing[] = []; constructor(public path: string, pattern: any) { - this.files = IO.dir(path, pattern, { recursive: true }); + this.files = IO.dir(path, pattern, { recursive: true }).sort(); } public allTS(): string[] { @@ -209,7 +209,7 @@ module DefinitelyTyped { } public printSyntaxErrorCount(current: number, total: number) { - this.out(' \33[36m\33[1mSyntaxe error :\33[0m \33[31m\33[1m' + ((current / total) * 100).toFixed(2) + '% (' + current + '/' + total + ')\33[0m\n'); + this.out(' \33[36m\33[1mSyntax error :\33[0m \33[31m\33[1m' + ((current / total) * 100).toFixed(2) + '% (' + current + '/' + total + ')\33[0m\n'); } public printTestErrorCount(current: number, total: number) {