diff options
author | 2022-07-01 00:11:13 +0400 | |
---|---|---|
committer | 2022-07-01 01:15:35 +0400 | |
commit | 2d4f959778a80a159a2a09424c2e736c8e21620e (patch) | |
tree | 7882f1fb8e4d8afbd69884336273f246b3015265 /src/api/question.ts | |
parent | Allow More Customization In Error Message (diff) |
Add Unittest Failure Interface
Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'src/api/question.ts')
-rw-r--r-- | src/api/question.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/api/question.ts b/src/api/question.ts index 9824b60..3561055 100644 --- a/src/api/question.ts +++ b/src/api/question.ts @@ -16,3 +16,16 @@ export interface Question { data: { [key: string]: string | string[] }, required: boolean } + +type unittestError = { + question_id: string, + question_index: number, + return_code: number, + passed: boolean, + result: string, +} + +export interface UnittestFailure { + error: string, + test_results: unittestError[], +} |