Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » B3 » Assertions
Assertions [message #579604] Mon, 28 September 2009 08:15
Henrik Lindberg is currently offline Henrik Lindberg
Messages: 2499
Registered: July 2009
Senior Member
Hi,
Oisin started talking about debugging builds, and this triggered an
idea. Do you think it is valuable to be able to specify assertions?

I am thinking of something that can be executed before/after other
actions. This can be used to make sure the input is sane to an action,
that an action did produce something that is sane etc.

Imagine a build where some actions did produce a file, but it is empty.
It should really have produced serveral files. The build process will
not notice this, and eventually something really bad happens when trying
to run.

With assertions in place, they could issue warnings or errors, stop the
build, etc.

b3 could come with some standard assertion implementations - 'not
empty', '>= n files', '>= n bytes', 'list of files', 'permissions check'
- to name a few from the top of my head.

Do you think this is useful? If so, I will include this in the model.

- henrik
Previous Topic:API baseline - relevant for b3
Next Topic:API baseline - relevant for b3
Goto Forum:
  


Current Time: Thu Aug 28 21:44:06 EDT 2014

Powered by FUDForum. Page generated in 0.01974 seconds