1
0
Fork 0

show run seed and counterexample path in brief reporter

This commit is contained in:
ssube 2021-07-22 13:07:04 -05:00
parent 9aea39be37
commit 9b815a5391
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
import { Arbitrary, asyncProperty, check, Parameters, property, RunDetails } from 'fast-check';
import { Arbitrary, asyncProperty, check, Parameters, RunDetails } from 'fast-check';
export type CheckStatus = boolean | void;
export type Check<T> = (this: Mocha.Context, val: T) => never | CheckStatus | Promise<CheckStatus>;
@ -63,9 +63,9 @@ export function formatExamples<T>(details: RunDetails<[T]>): string {
return val;
}
}).join(',');
return `failing on: ${examples}`;
return `failing on: ${examples} (seed: ${details.seed}, path: '${details.counterexamplePath}')`;
} else {
return `without counterexamples`;
return `without counterexamples (seed: ${details.seed})`;
}
}