[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [virgo-dev] Adding test bundles to the deployer test project
- From: "Kapukaranov, Borislav" <borislav.kapukaranov@xxxxxxx>
- Date: Tue, 15 Feb 2011 15:57:03 +0100
- Accept-language: en-US, de-DE
- Acceptlanguage: en-US, de-DE
- Delivered-to: email@example.com
- Thread-index: AcvM8RBOB2iid3I1QqCR+yd3oSfizQALbM6Q
- Thread-topic: [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 :)
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.
virgo-dev mailing list