Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
var opt_dir = new OptionString("Working directory (default is '.nitunit')", "--dir")
# opt --no-act
var opt_noact = new OptionBool("Does not compile and run tests", "--no-act")
+
+ # Working directory for testing.
+ fun test_dir: String do
+ var dir = opt_dir.value
+ if dir == null then return ".nitunit"
+ return dir
+ end
end
ts.attr("package", mmodule.full_name)
- var prefix = toolcontext.opt_dir.value
- if prefix == null then prefix = ".nitunit"
+ var prefix = toolcontext.test_dir
prefix = prefix.join_path(mmodule.to_s)
var d2m = new NitUnitExecutor(toolcontext, prefix, o, ts)