[weld-dev] TCK-style testing for Seam Cron Module

Peter Royle howardmoon at screamingcoder.com
Tue May 31 18:33:51 EDT 2011


Hi Pete,

I just got around to checking this out and it looks like we're doing pretty much the same thing, so that's definitely good enough for me :)



On 20/05/2011, at 8:57 PM, Pete Muir wrote:

> Take a look at weld and the way we do the servlet tests (environments/servlet/tests) as we do exactly this with arquillian :-)
> 
> On 19 May 2011, at 23:32, Pete Royle wrote:
> 
>> Hi,
>> 
>> The Seam Cron module has many providers and I'd like to test each 
>> provider by reusing the same test suite (Arquillian), but just having a 
>> different provider on the classpath . Kind of TCK style I think.
>> 
>> So I would have several provider projects, plus a tck project containing 
>> all the common test classes. I guess then each provider project would 
>> depend on the tck (scope: test) so that the tck tests, plus any of its 
>> own unit tests are all run during that provider's test phase.
>> 
>> My concerns with this so far are:
>> 
>> 1. I think I will need a test suite with the test classes in 
>> src/main/java (rather than src/test/java) so that the provider can get 
>> those classes onto its own classpath during testing. Will Arquillian 
>> work OK like that (ie: does it have maven integration which specifically 
>> looks under src/test/java only)?
>> 
>> 2. The classes in the test suite have a hard-coded @Deployment, and I'm 
>> not sure how I'd go about customising that place a different provider 
>> class on the classpath. I don't want to have to force my providers to 
>> extend every test case just to customise the deployment.
>> 
>> 3. Am I going about this all wrong?
>> 
>> Cheers for any advice you can give me.
>> 
>> Pete R
>> 
>> 
>> _______________________________________________
>> weld-dev mailing list
>> weld-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/weld-dev
> 




More information about the weld-dev mailing list