Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » B3 » Running JUnit B3 tests now works with BuildUnits and Builders
Running JUnit B3 tests now works with BuildUnits and Builders [message #596273] Thu, 18 February 2010 17:36
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2501
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
Previous Topic:Running JUnit B3 tests now works with BuildUnits and Builders
Next Topic:output location question...
Goto Forum:
  


Current Time: Thu Dec 18 01:01:35 GMT 2014

Powered by FUDForum. Page generated in 0.01643 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software