On Mon, Jun 16, 2008 at 10:15 AM, Bertrand Delacretaz
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> I've added subtle (hmm...) hints to some Jira issues and patches that
> lack tests - our test coverage is fairly decent at the moment, and we
> have very good infrastructure in place to write automated tests for
> most of our stuff (excluding OSGi bundle
> loading/unloading/reconfiguration unfortunately, that's on my wishlist
> at the moment [1]), so IMO there's no reason not to write them.
>
> I'd be very happy if people could make sure all new features or bug
> fixes are covered by automated tests, or at least create Jira issues
> to remind us to write them when we find some time.
>
> I'm available (within my unfortunate days-have-only-24-hours
> limitattions) for pointing people to existing example of tests and
> test helpers when needed, to help make that happen.
>
> Most of the tests that I wrote are based on the JUnit 3 interfaces, as
> I haven't spent enough time on the "new" stuff yet for it to come
> naturally when I write tests, but Carsten (at least) wrote some nice
> tests based on version 4 - so don't be shy to use that where it makes
> sense.
>
> -Bertrand
>
> [1] Creating or finding a framework that allows for injecting and
> configuring OSGi bundles during automated tests might be a nice way
> for someone to get involved without having to learn too much about
> Sling internals.

You might want to have a look at the spring framework:

http://static.springframework.org/osgi/docs/current/reference/html/testing.html#testing:integration

it looks promising but I haven't really found the time to test drive
it myself...

regards,

Karl



-- 
Karl Pauls
[EMAIL PROTECTED]

Reply via email to