Hi JB, I followed your block and it works perfectly.
Thank you Richard -----Original Message----- From: "Jean-Baptiste Onofré" <[email protected]> To: [email protected] Sent: Do., 11 Sep 2014 10:32 Subject: Re: Adding JUnit tests to kar project Hi Richard, junit should not be in the kar. For the unit test, you should directly use junit in the bundle project packaged in the kar. If you want to do integration test of the kar, you can use pax-exam: it will bootstrap a Karaf, where you can execute command or drop file, like the kar one. You can take a look on this blog, it could help you: http://blog.nanthrax.net/2014/08/testing-utest-and-itest-apache-camel-blueprint-route/ Regards JB On 09/11/2014 10:23 AM, Hierlmeier, Richard wrote: > > Hi, > > I have a pom with packaging kar. I wrote junit tests with pax-exam to > test the kar (tests that all required dependencies are available). > > However, it seems that the lifecycle of kar projects does not execute > junit tests. > > What is the best practices for such junit tests. Should they be packed > in a different maven artefact? > > > Richard -- Jean-Baptiste Onofré [email protected] http://blog.nanthrax.net Talend - http://www.talend.com
