aboutsummaryrefslogtreecommitdiffstats
path: root/src/api
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2022-07-01 00:11:13 +0400
committerGravatar Hassan Abouelela <[email protected]>2022-07-01 01:15:35 +0400
commit2d4f959778a80a159a2a09424c2e736c8e21620e (patch)
tree7882f1fb8e4d8afbd69884336273f246b3015265 /src/api
parentAllow More Customization In Error Message (diff)
Add Unittest Failure Interface
Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'src/api')
-rw-r--r--src/api/question.ts13
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[],
+}