浏览代码

fix: Fix some missing implementations details in #2666a7b

Add tags as a parameter in assessment_result.js constructor
Modify output_matching.js to pass on test tags to assessment_result.js
Lucas de Souza 3 年之前
父节点
当前提交
31b422d7e5

+ 3 - 1
js/assessment/output_matching/assessment_result.js

@@ -77,8 +77,9 @@ export class OutputAssessmentResult {
     result,
     store,
     time,
+    tags,
     error_msg = "",
-    error_id
+    error_id = ""
   ) {
     this.name = name;
     this.status = status;
@@ -87,6 +88,7 @@ export class OutputAssessmentResult {
     this.store = store;
     this.time = time;
     this.error_msg = error_msg;
+    this.tags = tags;
     this.error_id = error_id;
   }
 

+ 4 - 1
js/assessment/output_matching/output_matching.js

@@ -63,6 +63,7 @@ export class OutputMatching {
             null,
             sto,
             final_time,
+            this.tag,
             error,
             error.id
           );
@@ -112,7 +113,8 @@ export class OutputMatching {
           input.input_list,
           result,
           sto,
-          final_time
+          final_time,
+          this.tag
         );
       })
       .catch((error) => {
@@ -123,6 +125,7 @@ export class OutputMatching {
           null,
           null,
           null,
+          this.tags,
           this.getErrorMessage(
             "test_case_exception",
             this.name + 1,