Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » B3 » Assertions
Assertions [message #579604] Mon, 28 September 2009 12:15
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
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: Fri Apr 26 14:31:06 GMT 2024

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

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

Back to the top