[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [virgo-dev] Adding test bundles to the deployer test project
|
I could not get it working by just copying the jar in already existing folder described as repository and using "ant test" on the specific test group, say org.eclipse.virgo.kernel.deployer.test - the jar was not found. Rebuilding the whole kernel repository without running the tests solved the issue (using ant clean clean-integration jar).
I am quite puzzled by that because I checked that on the local compile before the test group is ran the jar got copied in the appropriate subfolder of /test-classes.
Anyway I guess a clean rebuild always helps :)
Best Regards
Bobby
-----Original Message-----
From: virgo-dev-bounces@xxxxxxxxxxx [mailto:virgo-dev-bounces@xxxxxxxxxxx] On Behalf Of Glyn Normington
Sent: Tuesday, February 15, 2011 11:17 AM
To: Virgo Project
Subject: [virgo-dev] Adding test bundles to the deployer test project
The following query came up on the committer skype chat:
>Do you know if anything specific is required to add a new jar to test/resources of org.eclipse.virgo.kernel.deployer.test?
The integration tests in the org.eclipse.virgo.kernel.deployer.test project take their configuration from src/test/resources/config by default. The repository chain is defined in org.eclipse.virgo.repository.properties. Adding a bundle into one of the repositories in the chain should do the trick provided the repository has * or *.jar in its search pattern.
>I saw the repository configuration file where there are many folders described as repositories but when i copy my jar into one of them it is not found by the test.
It sounds like the search pattern isn't including the JAR. If you are running the test under Eclipse and you copy outside Eclipse, you also have to refresh the package explorer in Eclipse to pick up the changes.
To separate test bundles, it may be better to create a new subdirectory of src/test/resources for your test bundle(s) and add a suitable repository to the configured chain.
>Maybe i should do a clean rebuild of the whole kernel?
May be worth a shot, but rebuilding the kernel is unlikely to have much effect.
Regards,
Glyn
_______________________________________________
virgo-dev mailing list
virgo-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/virgo-dev