keep status of jasmine test in mkws.jasmine_done
authorWolfram Schneider <wosch@indexdata.dk>
Wed, 29 Jan 2014 18:20:34 +0000 (18:20 +0000)
committerWolfram Schneider <wosch@indexdata.dk>
Wed, 29 Jan 2014 18:20:34 +0000 (18:20 +0000)
that should make it possible to poll for successfull test run

test/spec/mkws-pazpar2.js

index 03c7bd9..dd7a2ab 100644 (file)
@@ -42,6 +42,8 @@ function init_jasmine_config() {
         }
         debug("jasmine config: " + key + " => " + jasmine_config[key]);
     }
         }
         debug("jasmine config: " + key + " => " + jasmine_config[key]);
     }
+
+    mkws.jasmine_done = false;
 }
 
 var get_hit_counter = function () {
 }
 
 var get_hit_counter = function () {
@@ -384,7 +386,10 @@ describe("Check status client counter", function () {
 
 });
 
 
 });
 
-/* dummy EOF */
+/* done */
 describe("All tests are done", function () {
 describe("All tests are done", function () {
-    it(">>> hooray <<<", function () {});
+    it(">>> hooray <<<", function () {
+        mkws.jasmine_done = true;
+    });
 });
 });
+