Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » 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: 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
Previous Topic:Running JUnit B3 tests now works with BuildUnits and Builders
Next Topic:output location question...
Goto Forum:
  


Current Time: Thu Apr 25 14:24:13 GMT 2024

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

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

Back to the top