Key changes: - Run URL checks more frequently on every change. - Introduce environment variable to randomly select and limit URLs tested, this way the tests will provide quicker feedback on code changes. Other supporting changes: - Log more information about test before running the test to enable easier troubleshooting. - Move shuffle function for arrays for reusability and missing tests.
27 lines
592 B
TypeScript
27 lines
592 B
TypeScript
import { indentText } from '@tests/shared/Text';
|
|
|
|
export class TestExecutionDetailsLogger {
|
|
public logTestSectionStartDelimiter(): void {
|
|
this.logSectionDelimiterLine();
|
|
}
|
|
|
|
public logTestSectionEndDelimiter(): void {
|
|
this.logSectionDelimiterLine();
|
|
}
|
|
|
|
public logLabeledInformation(
|
|
label: string,
|
|
detailedInformation: string,
|
|
): void {
|
|
console.log([
|
|
`${label}:`,
|
|
indentText(detailedInformation),
|
|
].join('\n'));
|
|
}
|
|
|
|
private logSectionDelimiterLine(): void {
|
|
const horizontalLine = '─'.repeat(40);
|
|
console.log(horizontalLine);
|
|
}
|
|
}
|