Add -e flag to runtests.sh to stop tests after a given file

This is useful when trying to debug an error that only happens after a
number of other tests have run -- specify -e and run tests from either
an earlier file with -s or from the beginning.
This commit is contained in:
Dan Stillman 2017-06-20 00:47:13 -04:00
parent dcfddac519
commit c11f1069d7
3 changed files with 13 additions and 1 deletions

View file

@ -38,6 +38,7 @@ ZoteroUnit.prototype = {
this.runTests = !this.makeTestData;
this.bail = cmdLine.handleFlag("bail", false);
this.startAt = cmdLine.handleFlagWithParam("startAtTestFile", false);
this.stopAt = cmdLine.handleFlagWithParam("stopAtTestFile", false);
this.grep = cmdLine.handleFlagWithParam("grep", false);
this.timeout = cmdLine.handleFlagWithParam("ZoteroTestTimeout", false);
},