I would like to run MUnit tests inside TestSuite constructs from the command line or a notebook interface without loading the Workbench GUI. I tried
TestRun["suite.mt"]
where suite.mt contains:
TestSuite[{"file1.mt","file2.mt"}]
and each of the fileX.mt contain standard Test[...]
constructs. However, this does not run the tests; I get the output that 0 tests were run. TestRun["file1.mt"]
works. I cannot find documentation for TestRun
, so maybe it does not support this, but in that case, how do I run testsuite files without loading the Workbench GUI?
Edit: Since MUnit v1.4 (which is distributed with Mathematica v10) TestRun
function correctly handles path to test suite file.
MUnit
provides since there obviously was a lot of work and thought put into that already. $\endgroup$.mt
runner: distributing tests together with an open source application so people can run it on different platforms without needing WorkBench. I really wish MUnit were part of Mathematica. $\endgroup$