We should eventually aim to include both sorts of tests. If we include unit tests, thats
good for showing simplicity. But showing integration tests is good as well. We are
planning to add functional (selenium) tests to lots of the quick starts soon.
On 14 Aug 2013, at 10:51, Antoine Sabot-Durand <asd(a)redhat.com> wrote:
Gert,
The main idea is to demonstrate Unit Test to user. It is very unlikely that we break our
example code but if these can provide security on that it would be perfect.
If you take the rest test class as an example :
https://github.com/jboss-fuse/quickstarts/blob/master/rest/src/test/java/...
The only need is to be able to launch fuse (cxf part at least) and deploy the quick start
bundle before launching the test. If we can perform that with Camel test it's great as
they seem to be the simplest solution.
Could you point me to test example for the 2 solutions?
Thanks,
Antoine
Le 13 août 2013 à 22:19, Gert Vanthienen <gvanthie(a)redhat.com> a écrit :
> Antoine,
>
>
> What kind of tests are we talking about here? Is the goal to show users how to unit
test their code or are these tests more like integration tests to make sure we don't
break the example code while we're developing the product?
>
> If it's the former we're looking for, we can just use Camel's test
support for most of these tests. It probably makes sense to include a few of these tests
anyway, it's a very commonly used feature of Camel.
>
> For the latter, we do use Pax Exam for that ourselves (and we probably should build
those tests for these quickstarts, either as part of Fuse ESB or as part of the
quickstarts repo), but it's a bit harder for our users to do the same. Pax Exam Karaf
requires access to the container distribution zip file - the most convenient way to get
this, is by downloading those from a Maven repository, but since these distributions are
no longer available that way, it would require them to download them from the portal and
then configure the tests to pick it up. How does Arquillian do that?
>
>
> Regards,
>
> Gert
>
>
> ----- Original Message -----
> From: "Antoine Sabot-Durand" <asd(a)redhat.com>
> To: "Gert Vanthienen" <gvanthie(a)redhat.com>
> Cc: "jdf-dev" <jdf-dev(a)lists.jboss.org>, "Aileen
Cunningham" <aileenc(a)redhat.com>, "Muir Pete"
<pmuir(a)redhat.com>, "Rafael Benevides" <benevides(a)redhat.com>,
"Hanneli Tavante" <hannelita(a)gmail.com>
> Sent: Tuesday, August 13, 2013 3:47:47 PM
> Subject: Re: [Fuse Quickstart] JDF Fuse quick start ready for review
>
> Thanks Gert,
>
> The only thing that bothers me in these quick start are tests. I transformed some
client test code to real integration test but do it well I should have added a way to
bundle and launch the sample in Fuse before launching the test.
> We don't have Arquillian solution for fuse but perhaps could we use Pax-Exam
which looks like to be the standard integration test engine for fuse? What do you think?
>
> Antoine
>
> Le 13 août 2013 à 14:22, Gert Vanthienen <gvanthie(a)redhat.com> a écrit :
>
>> Hanneli and Antoine,
>>
>>
>> I had a quick look at them and pushed a few minor fixes to suppress build
warnings and get the README.md files looking a bit better on GitHub's rendering of
Markdown, but other that than the code and README's look very clear and consistent
now. Thanks a lot for all your efforts! The examples look better than ever!
>>
>> Next step on our end will be to get these examples integrated into the product
again. Just noticed we had one more outstanding issue with the *-secure examples to
better describe what exactly we mean with "secure" (cfr.
http://fusesource.com/issues/browse/ENTESB-228) - perhaps we should fix up the docs on the
new quickstarts instead?
>>
>>
>> Regards,
>>
>> Gert
>>
>> ----- Original Message -----
>> From: "Antoine Sabot-Durand" <asd(a)redhat.com>
>> To: "jdf-dev" <jdf-dev(a)lists.jboss.org>
>> Cc: "Gert Vanthienen" <gvanthie(a)redhat.com>, "Aileen
Cunningham" <aileenc(a)redhat.com>, "Muir Pete"
<pmuir(a)redhat.com>, "Rafael Benevides" <benevides(a)redhat.com>,
"Hanneli Tavante" <hannelita(a)gmail.com>
>> Sent: Tuesday, August 13, 2013 11:12:47 AM
>> Subject: [Fuse Quickstart] JDF Fuse quick start ready for review
>>
>> Hi all,
>>
>> Hanneli and I have just finished to refactor Fuse example in JDF quick start
format. You'll find them here :
https://github.com/jboss-fuse/quickstarts
>>
>> Your feedback is most welcome.
>>
>> Antoine
>