aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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[],
+}