batchee-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <>
Subject Re: Approach for testing core 'jbatch' function leveraging test utilities?
Date Wed, 27 Aug 2014 11:48:39 GMT
Hi Scott,

first let me say I'm very happy to see you here!

What I tried to do until today is to make the build "easy" (so i'm not
fan of pulling jaxb outside jbatch module) and make tests running
before deploying (speaking about maven phases).

It means - and AFAIK it is the case - we can have few duplication
dedicated to tests - think the waitForBatch utility is duplicated

IMHO jbatch module should really be seen as the kernel and can't
depends on the ecosystem around. I'm really not a fan of itests
modules since they build after the module you work in and that's the
best way to break something - if I'm alone please shout ;).

We can create test module from a shade of batchee-jbatch test jar if
the duplication becomes too important but I think it shouldn't be the

Do you have some concrete example (pseudo code maybe) to try to think
more specifically on your case?

Romain Manni-Bucau
Twitter: @rmannibucau

2014-08-27 13:35 GMT+02:00 Scott Kurz <>:
> Hi, it's been interesting to spend some time looking around the BatchEE
> project and look at all the integrations and extensions that you've been
> adding !
> I'm hoping to start contributing here by fixing some problems I know have
> been inherited from the RI codebase.
> So say we have a test that involves a sequence like a
> start/stop/restart...and say it's designed to test something in the "core"
> function in the 'jbatch' module.
> The most obvious place based on existing tests would seem to me to put the
> test itself in 'jbatch'.    However, it might be nice to leverage the
> batchee-test utilities.
> But batchee-test already has a dependency on jbatch (looks like because it
> uses the JAXB model).
> Seems like we could either have a new module, "batchee-testcases" (or
> something) leveraging batchee-test.   Or another approach might be to pull
> out the JAXB model into a separate module if that would allow jbatch to
> depend on batchee-test.
> What do you think?
> Thanks,
> Scott

View raw message