Add command line parsing and configuration management

* Introduced `CommandLine` class for handling command line options and arguments
* Added `TestConfiguration` class to manage application credentials and URIs
* Implemented example usage for generating command line arguments from a configuration object
* Updated `package.json` to include `commander` dependency
* Removed unused `TestRunner` class and created a new `TestRunner` for executing tests with command line options
* Adjusted logging level type to use lowercase values for consistency
This commit is contained in:
2025-08-18 17:54:04 -04:00
parent 1bc3aaa8aa
commit 4b672f231f
7 changed files with 295 additions and 14 deletions

View File

@@ -9,27 +9,27 @@ export enum LoggingLevel {
All = 7
}
export type LoggingLevelType = 'Off' | 'Fatal' | 'Error' | 'Warning' | 'Info' | 'Debug' | 'Trace' | 'All';
export type LoggingLevelType = 'off' | 'fatal' | 'error' | 'warning' | 'info' | 'debug' | 'trace' | 'all';
export class LoggingLevelMapping {
public static convertLoggingLevelToLoggingLevelType(level: LoggingLevel): LoggingLevelType {
switch (level) {
case LoggingLevel.Off:
return 'Off';
return 'off';
case LoggingLevel.Fatal:
return 'Fatal';
return 'fatal';
case LoggingLevel.Error:
return 'Error';
return 'error';
case LoggingLevel.Warning:
return 'Warning';
return 'warning';
case LoggingLevel.Info:
return 'Info';
return 'info';
case LoggingLevel.Debug:
return 'Debug';
return 'debug';
case LoggingLevel.Trace:
return 'Trace';
return 'trace';
case LoggingLevel.All:
return 'All';
return 'all';
default:
throw new Error(`[LoggingLevelMapping] Received unknown logging level [${level}]`);
}