Running JUnit B3 tests now works with BuildUnits and Builders [message #596273] |
Thu, 18 February 2010 17:36 |
Henrik Lindberg Messages: 2509 Registered: July 2009 |
Senior Member |
|
|
Hi,
the B3 JUnit runner is updated to enable running BuildUnit and Builder
tests.
Since the testing is somewhat grey-box, there is a need to get hold of
the content of the b3 file being run (i.e. defined BuildUnits), and
later also get access to the build engine (to trigger resolution etc.
and verify partial results).
To handle this, the property $test.argv is bound to an argument vector
consisting of the BuildEngine and all defined BuildUnits in the b3 file
being executed.
It is then easy to run and debug tests interactively by doing something
like:
function main(List argv) {
with properties { $test.argv = argv ; }
: testRunBuildersAndMergeResult();
}
The b3 testsuite now includes one test that makes some basic low level
tests of builders. More to be added...
Regards
- henrik
|
|
|
Powered by
FUDForum. Page generated in 0.03033 seconds