Fix tests. Add test for hooks.
This commit is contained in:
parent
42ef358459
commit
1fa209a689
6 changed files with 49 additions and 8 deletions
|
|
@ -22,4 +22,19 @@ task cr, "Testing `nimble c -r nimscript.nim` via setCommand":
|
|||
setCommand "c", "nimscript.nim"
|
||||
|
||||
task api, "Testing nimscriptapi module functionality":
|
||||
echo(getPkgDir())
|
||||
echo(getPkgDir())
|
||||
|
||||
before hooks:
|
||||
echo("First")
|
||||
|
||||
task hooks, "Testing the hooks":
|
||||
echo("Middle")
|
||||
|
||||
after hooks:
|
||||
echo("last")
|
||||
|
||||
before hooks2:
|
||||
return false
|
||||
|
||||
task hooks2, "Testing the hooks again":
|
||||
echo("Shouldn't happen")
|
||||
Loading…
Add table
Add a link
Reference in a new issue