mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-25 07:23:31 +01:00
fixed regression test counting
This commit is contained in:
@@ -108,7 +108,8 @@ commands.addUserCommand(["regr[essions]"],
|
|||||||
// 1.) run commands and mappings tests
|
// 1.) run commands and mappings tests
|
||||||
for (let [, test] in Iterator(tests))
|
for (let [, test] in Iterator(tests))
|
||||||
{
|
{
|
||||||
if (count >= 1 && ++currentTest != count)
|
currentTest++;
|
||||||
|
if (count >= 1 && currentTest != count)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
let testDescription = util.clip(test.cmds.join(" -> "), 80);
|
let testDescription = util.clip(test.cmds.join(" -> "), 80);
|
||||||
@@ -133,7 +134,8 @@ commands.addUserCommand(["regr[essions]"],
|
|||||||
// 2.) Run function tests
|
// 2.) Run function tests
|
||||||
for (let [, func] in Iterator(functions))
|
for (let [, func] in Iterator(functions))
|
||||||
{
|
{
|
||||||
if (count >= 1 && ++currentTest != count)
|
currentTest++;
|
||||||
|
if (count >= 1 && currentTest != count)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
liberator.echomsg("Running test " + currentTest + " of " + totalTests + ": " + util.clip(func.toString().replace(/[\s\n]+/gm, " "), 80));
|
liberator.echomsg("Running test " + currentTest + " of " + totalTests + ": " + util.clip(func.toString().replace(/[\s\n]+/gm, " "), 80));
|
||||||
|
|||||||
Reference in New Issue
Block a user