* Created `BrowserstackApi` class for interacting with the Browserstack API, including a method to fetch supported browsers. * Introduced `SupportedBrowser` type to define the structure of browser data returned from the API. * Updated `TestRunner` to instantiate and run the test execution process, enabling command line options logging.
26 lines
563 B
TypeScript
26 lines
563 B
TypeScript
import PCastAPI from '@techniker-me/pcast-api';
|
|
import RtmpPush from '@technniker-me/rtmp-push';
|
|
import CommandLine from '../config/CommandLine';
|
|
|
|
interface CommandLineOptions {
|
|
applicationId: string;
|
|
secret: string;
|
|
logLevel: string;
|
|
}
|
|
|
|
class TestRunner {
|
|
private static readonly _commandLineOptions: CommandLineOptions = CommandLine.parse(process.argv);
|
|
|
|
public static main(): void {
|
|
const testRunner = new TestRunner();
|
|
testRunner.run();
|
|
}
|
|
|
|
public run(): void {
|
|
console.log(TestRunner._commandLineOptions);
|
|
}
|
|
}
|
|
|
|
TestRunner.main();
|
|
|