X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Fspec%2Fmkws-pazpar2.js;h=1717551e9e8997c96099c014a04c028c8a55beb2;hb=6cd99458c3cdb00b241e53bf3910afb4b88273a7;hp=81da33aeb6b0e7c572bde0d6c817eb6dde5aec20;hpb=3ded31cbe638989905a85b0c342494590ce3ac36;p=mkws-moved-to-github.git diff --git a/test/spec/mkws-pazpar2.js b/test/spec/mkws-pazpar2.js index 81da33a..1717551 100644 --- a/test/spec/mkws-pazpar2.js +++ b/test/spec/mkws-pazpar2.js @@ -30,6 +30,9 @@ var jasmine_status = { function init_jasmine_config() { var jasmine_config_default = { + // tune parameter for batch testing + batch_tuning: true, + search_query: "freebsd", max_time: 17, // in seconds @@ -55,6 +58,21 @@ function init_jasmine_config() { debug("jasmine config: " + key + " => " + jasmine_config[key]); } + // jenkins batch tests + if (jasmine_config.batch_tuning) { + var sec = mkws.getParameterByName("second", document.location); + + // run on localhost + if (!sec && document.location.href.match(/^http:\/\/localhost:4040/)) { + sec = 2000; + } + + if (sec && parseInt(sec) >= 100) { + jasmine_config.second = parseInt(sec); + debug("longer timeouts for batch testing: " + jasmine_config.second); + } + } + mkws.jasmine_done = false; }; @@ -654,8 +672,8 @@ describe("Check translations", function () { check_translation(list, text); }); - - /* not tested + +/* not tested * * Status line: -- Active clients : 0/1 -- Retrieved records : 4/4 *