Skip to content

Commit

Permalink
Disable xqlint when running xqsuite tests
Browse files Browse the repository at this point in the history
bugs in xqlint were leading to parsing errors, which were preventing xqsuite tests from running. this commit works around the problem by disabling the xqlint checks that were being performed when the run test command was fired. we lose 2 other checks that were being performed - 1. making sure that the open tab is a library module and 2. making sure that it contains xqsuite tests. so not a fix by any means.
  • Loading branch information
joewiz committed Sep 27, 2019
1 parent b5cebca commit 6df5fac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/xquery-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -1052,9 +1052,9 @@ eXide.edit.XQueryModeHelper = (function () {

Constr.prototype.runTest = function(doc) {
var self = this;
this.xqlint(doc);
var info = new eXide.edit.ModuleInfo(doc.ast);
if (info.isModule() && info.hasTests()) {
// this.xqlint(doc);
// var info = new eXide.edit.ModuleInfo(doc.ast);
// if (info.isModule() && info.hasTests()) {
$.ajax({
type: "POST",
url: "modules/run-test.xql",
Expand All @@ -1070,7 +1070,7 @@ eXide.edit.XQueryModeHelper = (function () {
eXide.util.error(xhr.responseText, "Server Error");
}
})
}
// }
};

Constr.prototype.createOutline = function(doc, onComplete) {
Expand Down

0 comments on commit 6df5fac

Please sign in to comment.