Files
ChannelTests-TS/test/runner/TestRunner.ts
2025-08-18 21:51:28 -04:00

20 lines
660 B
TypeScript

import LoggerFactory from '../logger/LoggerFactory';
import CommandLine from '../config/CommandLine';
import {CommandLineOptions} from '../config/CommandLine';
export default class TestRunner {
private static readonly _logger = LoggerFactory.getLogger('TestRunner');
private static readonly _commandLineOptions: CommandLineOptions = CommandLine.parse(process.argv);
static {
TestRunner.run();
}
public static run(): void {
LoggerFactory.setLoggingLevel(TestRunner._commandLineOptions.logLevel);
TestRunner._logger.info('TestRunner started');
TestRunner._logger.info(JSON.stringify(TestRunner._commandLineOptions, null, 2));
}
}