Update test runner to process files alphabetically

This commit is contained in:
Neil Stalker
2013-06-24 21:03:34 +01:00
parent 144b89396c
commit 126bf61157
2 changed files with 4 additions and 4 deletions

View File

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

View File

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