@sasjs/cli
Version:
Command line interface for SASjs
67 lines (66 loc) • 1.74 kB
TypeScript
import { ServerType } from '@sasjs/utils';
export interface TestFlow {
testSetUp?: string;
testTearDown?: string;
tests: string[];
}
export declare enum CoverageType {
service = "service",
job = "job",
macro = "macro",
test = "test"
}
export declare enum CoverageState {
notCovered = "not covered",
standalone = "standalone"
}
export interface Coverage {
[key: string]: {
Type: CoverageType;
Coverage: CoverageState;
};
}
export interface TestResultDescription {
TEST_DESCRIPTION: string;
TEST_RESULT: TestResultStatus.pass | TestResultStatus.fail;
TEST_COMMENT?: string;
}
export declare enum TestResultStatus {
pass = "PASS",
fail = "FAIL",
notProvided = "not provided"
}
export interface TestDescription {
test_target: string;
results: TestResult[];
}
export interface TestResult {
test_loc: string;
sasjs_test_id: string;
result: TestResultStatus.notProvided | TestResultDescription[];
test_url: string;
}
export interface TestResults {
sasjs_test_meta: TestDescription[];
csv_result_path?: string;
xml_result_path?: string;
coverage_report_path?: string;
failed_to_complete?: number;
completed_with_failures?: number;
tests_with_results?: string;
tests_that_pass?: string;
target_name?: string;
target_server_url?: string;
target_server_type?: ServerType;
local_date_time?: string;
local_user_id?: string;
local_machine_name?: string;
}
export interface TestResultCsv {
test_target: string;
test_loc: string;
sasjs_test_id: string;
test_suite_result: TestResultStatus.pass | TestResultStatus.fail;
test_description: string;
test_url: string;
}