Browse Source

AutoEval: removed request for teacher test cases

Igor 4 years ago
parent
commit
cb12236973
2 changed files with 5 additions and 5 deletions
  1. 4 4
      js/iassign-integration-functions.js
  2. 1 1
      js/util/iassignHelpers.js

+ 4 - 4
js/iassign-integration-functions.js

@@ -742,7 +742,7 @@ function full_screen() {
 
 function teacherAutoEval (data) {
   previousContent = data;
-  $.get(iLMparameters.iLM_PARAM_TeacherAutoEval, function (originalData) {
+  //$.get(iLMparameters.iLM_PARAM_TeacherAutoEval, function (originalData) {
     // Ver arquivo js/util/iassignHelpers.js
     var content = ivprogCore.prepareActivityToStudentHelper(data).getOrElse(null);
     if(!content) {
@@ -760,15 +760,15 @@ function teacherAutoEval (data) {
     if (content.algorithmInIlm != null) {
       algorithm_in_ilm = content.algorithmInIlm;
       parsePreviousAlgorithm();
-      ivprogCore.autoEval(originalData, displayGrade);
+      //ivprogCore.autoEval(originalData, displayGrade);
     }
 
     ivprogTextualOrVisual();
     if (settingsFilter && settingsFilter[0]) {
 
-      blockAllEditingOptions();
+      blockAllEditingOptions(); 
     }
-  });
+  //});
 }
 
 function displayGrade(grade) {

+ 1 - 1
js/util/iassignHelpers.js

@@ -95,7 +95,7 @@ export function autoEval (originalData, callback) {
     const autoAssessment = new IVProgAssessment(ast_code, getTestCases(), new TestConsole([]));
     autoAssessment.runTest().then( grade => callback(grade)).catch(err => {
       console.log(err);
-      callback(0);
+      callback(-5); // @FeedbackConvention Falha na execução
     });
   }
 }