Return-Path: X-Original-To: apmail-karaf-user-archive@minotaur.apache.org Delivered-To: apmail-karaf-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 32BC017F59 for ; Thu, 12 Mar 2015 19:54:17 +0000 (UTC) Received: (qmail 52317 invoked by uid 500); 12 Mar 2015 19:54:17 -0000 Delivered-To: apmail-karaf-user-archive@karaf.apache.org Received: (qmail 52276 invoked by uid 500); 12 Mar 2015 19:54:17 -0000 Mailing-List: contact user-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@karaf.apache.org Delivered-To: mailing list user@karaf.apache.org Received: (qmail 52265 invoked by uid 99); 12 Mar 2015 19:54:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Mar 2015 19:54:16 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URIBL_DBL_ABUSE_REDIR X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of c.eugster@docuteam.ch designates 209.85.212.173 as permitted sender) Received: from [209.85.212.173] (HELO mail-wi0-f173.google.com) (209.85.212.173) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Mar 2015 19:53:51 +0000 Received: by widex7 with SMTP id ex7so593295wid.3 for ; Thu, 12 Mar 2015 12:51:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:content-type:message-id:mime-version :subject:date:references:to:in-reply-to; bh=QE/++oigrvOt6Ye7sF51eYlEyqhSoYvgxwpUwCngTWk=; b=PnAgghHsTd8QfevZEq8c3PLs98e8YwjEaDtQJBsxPcjkGg65zaG2Q+RhEhnHE8Dm4T WB7yeh7X5+SfbrkKwidKDpFiLrz+HmI+epvWGAUE55aywOAgFEfZ2K9hRxsjT/IBXDmO BfETavf9zo9ZDL954iLgE0Sp86BwJxTl/vkcUuOnM9GI5MqnySO5O4/Fkc6GYi+zE7uM ai5GxAmCx+2Mp9KXSEBU3X+gWFTLyUvfPudv6waw1CqD8PH2iQ5LwTXDxYiDnL7IqCD1 V0efp8771j5Bq1RcJpZ1YzsMDC3bifUp7VtwLyy9PKcioGrsjWIGlaHwkyp9ykIGxwZk OWYg== X-Gm-Message-State: ALoCoQmOmZWcnvhurYj/b5Rp0e+mgTYww6fEsL+Syc7q/fFZPSJJd+lq86YVwp4vDzgY2I2/g+2M X-Received: by 10.180.75.73 with SMTP id a9mr43640186wiw.45.1426189895263; Thu, 12 Mar 2015 12:51:35 -0700 (PDT) Received: from christimmacbook.home (188-22-213-181.adsl.highway.telekom.at. [188.22.213.181]) by mx.google.com with ESMTPSA id 17sm11429907wjt.45.2015.03.12.12.51.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 12 Mar 2015 12:51:34 -0700 (PDT) From: Christian Eugster Content-Type: multipart/alternative; boundary="Apple-Mail=_868B4DBC-D10A-43AC-8879-1175EF2698FF" Message-Id: <26887CDA-A4CF-48A4-A352-9D277C36A482@docuteam.ch> Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Subject: Re: Pax exam Test does not run in Karaf container Date: Thu, 12 Mar 2015 20:51:33 +0100 References: <09DE9B5E-0563-49EF-A674-53DFC8E8DBFF@docuteam.ch> To: user@karaf.apache.org In-Reply-To: X-Mailer: Apple Mail (2.2070.6) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_868B4DBC-D10A-43AC-8879-1175EF2698FF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 So I have one test method annotated with @Test. In pom there is no skip = test entry in surefire plugin. May be there is a missing dependency? Thanks a lot! Christian Christian Eugster Docuteam GmbH Langacker 16 Postfach CH-5405 Baden-D=C3=A4ttwil +41 (0)56 470 03 37 c.eugster@docuteam.ch > Am 12.03.2015 um 20:43 schrieb Achim Nierbeck = : >=20 > Hi,=20 >=20 > it's a bit hard to see the issue without any source. It's like calling = the doc on the phone, "I think I got flu" :-) > So I'm doing some wild guesses here :-) >=20 > Your Testclass doesn't contain any testmethods? > For example is missing a @Test annotation? > You added an @Ignore to the test method? >=20 > regards, Achim=20 >=20 >=20 > 2015-03-12 20:32 GMT+01:00 Christian Eugster >: > Hi, >=20 > I have built a bundle with test class. When I run mvn test or mvn = install, I got no errors (-> BUILD SUCCESS), but the tests do not run:=20= >=20 > Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 = sec - in ch.eugster.ingest.sip.identification.KarafContainerTest >=20 > I have the same dependencies in pom.xml as in another project, where = the tests run through successfully. Does anybody have an idea, what does = go wrong? Thank you! >=20 > The whole log is: >=20 > [INFO] Scanning for projects... > [WARNING]=20 > [WARNING] Some problems were encountered while building the effective = model for = ch.eugster.ingest:sip-identification-processor:bundle:0.0.1-SNAPSHOT > [WARNING] = 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be = unique: org.ops4j.pax.exam:pax-exam-junit4:jar -> duplicate declaration = of version ${pax.exam.version} @ = ch.eugster.ingest:ingest-engine:0.0.1-SNAPSHOT, = /Users/christian/Projekte/ceugster/Entwicklung/Test/Workspace-4.4/ingest-e= ngine/pom.xml, line 56, column 15 > [WARNING] 'build.plugins.plugin.version' for = org.apache.felix:maven-bundle-plugin is missing. @ line 29, column 12 > [WARNING]=20 > [WARNING] It is highly recommended to fix these problems because they = threaten the stability of your build. > [WARNING]=20 > [WARNING] For this reason, future Maven versions might no longer = support building such malformed projects. > [WARNING]=20 > [INFO]=20 > [INFO] Using the builder = org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedB= uilder with a thread count of 1 > [INFO] = =20 > [INFO] = ------------------------------------------------------------------------ > [INFO] Building A Camel Blueprint Route 0.0.1-SNAPSHOT > [INFO] = ------------------------------------------------------------------------ > [INFO]=20 > [INFO] --- depends-maven-plugin:1.2:generate-depends-file = (generate-depends-file) @ sip-identification-processor --- > [INFO] Created: = /Users/christian/Projekte/ceugster/Entwicklung/Test/Workspace-4.4/ingest-e= ngine/sip-identification-processor/target/classes/META-INF/maven/dependenc= ies.properties > [INFO]=20 > [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ = sip-identification-processor --- > [WARNING] Using platform encoding (UTF-8 actually) to copy filtered = resources, i.e. build is platform dependent! > [INFO] Copying 2 resources > [INFO]=20 > [INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ = sip-identification-processor --- > [INFO] Nothing to compile - all classes are up to date > [INFO]=20 > [INFO] --- maven-resources-plugin:2.7:testResources = (default-testResources) @ sip-identification-processor --- > [WARNING] Using platform encoding (UTF-8 actually) to copy filtered = resources, i.e. build is platform dependent! > [INFO] Copying 7 resources > [INFO]=20 > [INFO] --- maven-compiler-plugin:3.2:testCompile (default-testCompile) = @ sip-identification-processor --- > [INFO] Nothing to compile - all classes are up to date > [INFO]=20 > [INFO] --- maven-surefire-plugin:2.18:test (default-test) @ = sip-identification-processor --- > [INFO] Surefire report directory: = /Users/christian/Projekte/ceugster/Entwicklung/Test/Workspace-4.4/ingest-e= ngine/sip-identification-processor/target/surefire-reports >=20 > ------------------------------------------------------- > T E S T S > ------------------------------------------------------- > SLF4J: Class path contains multiple SLF4J bindings. > SLF4J: Found binding in = [jar:file:/Users/christian/.m2/repository/org/slf4j/slf4j-log4j12/1.7.7/sl= f4j-log4j12-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class] > SLF4J: Found binding in = [jar:file:/Users/christian/.m2/repository/org/apache/karaf/org.apache.kara= f.client/3.0.3/org.apache.karaf.client-3.0.3.jar!/org/slf4j/impl/StaticLog= gerBinder.class] > SLF4J: Found binding in = [jar:file:/Users/christian/.m2/repository/org/ops4j/pax/logging/pax-loggin= g-api/1.8.1/pax-logging-api-1.8.1.jar!/org/slf4j/impl/StaticLoggerBinder.c= lass] > SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings = for an explanation. > SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory] > [ main] DefaultExamSystem INFO = Pax Exam System (Version: 4.4.0) created. > [ main] ProbeRunner INFO = creating PaxExam runner for class = ch.eugster.ingest.sip.identification.KarafContainerTest > Running ch.eugster.ingest.sip.identification.KarafContainerTest > [ main] ProbeRunner INFO = creating PaxExam runner for class = ch.eugster.ingest.sip.identification.KarafContainerTest > [ main] ProbeRunner INFO = running test class = ch.eugster.ingest.sip.identification.KarafContainerTest > [ main] ReactorManager INFO = suite finished > Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 = sec - in ch.eugster.ingest.sip.identification.KarafContainerTest >=20 > Results : >=20 >=20 >=20 >=20 > Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 >=20 > [INFO] = ------------------------------------------------------------------------ > [INFO] BUILD SUCCESS > [INFO] = ------------------------------------------------------------------------ > [INFO] Total time: 4.244 s > [INFO] Finished at: 2015-03-12T20:28:10+01:00 > [INFO] Final Memory: 17M/225M > [INFO] = ------------------------------------------------------------------------ >=20 >=20 > Christian Eugster > Docuteam GmbH > Langacker 16 > Postfach > CH-5405 Baden-D=C3=A4ttwil > +41 (0)56 470 03 37 > c.eugster@docuteam.ch >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 > --=20 >=20 > Apache Member > Apache Karaf > = Committer & PMC > OPS4J Pax Web > Committer & Project = Lead > blog > > Co-Author of Apache Karaf Cookbook > >=20 > Software Architect / Project Manager / Scrum Master=20 >=20 --Apple-Mail=_868B4DBC-D10A-43AC-8879-1175EF2698FF Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 So I have one test method annotated with @Test. In pom there = is no skip test entry in surefire plugin. May be there is a missing = dependency?

Thanks a = lot!

Christian

Christian Eugster
Docuteam GmbH
Langacker 16
Postfach
CH-5405 = Baden-D=C3=A4ttwil
+41 (0)56 470 03 37





Am 12.03.2015 um 20:43 schrieb Achim Nierbeck <bcanhome@googlemail.com>:

Hi, 

it's a bit hard to see the issue without any source. It's = like calling the doc on the phone, "I think I got flu" :-)
So I'm doing some wild guesses here :-)

Your Testclass doesn't = contain any testmethods?
For example is missing a = @Test annotation?
You added an @Ignore to the test = method?

regards,= Achim 


2015-03-12= 20:32 GMT+01:00 Christian Eugster <c.eugster@docuteam.ch>:
Hi,

I = have built a bundle with test class. When I run mvn test or mvn install, = I got no errors (-> BUILD SUCCESS), but the tests do not = run: 

Tests = run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec - in = ch.eugster.ingest.sip.identification.KarafContainerTest

I have = the same dependencies in pom.xml as in another project, where the tests = run through successfully. Does anybody have an idea, what does go wrong? = Thank you!

The = whole log is:

[INFO] Scanning for = projects...
[WARNING] 
[WARNING] Some problems were encountered while building the = effective model for = ch.eugster.ingest:sip-identification-processor:bundle:0.0.1-SNAPSHOT
=
[WARNING] = 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be = unique: org.ops4j.pax.exam:pax-exam-junit4:jar -> duplicate = declaration of version ${pax.exam.version} @ = ch.eugster.ingest:ingest-engine:0.0.1-SNAPSHOT, = /Users/christian/Projekte/ceugster/Entwicklung/Test/Workspace-4.4/ingest-e= ngine/pom.xml, line 56, column 15
[WARNING] 'build.plugins.plugin.version' for = org.apache.felix:maven-bundle-plugin is missing. @ line 29, column = 12
[WARNING] 
[WARNING] It is highly recommended to = fix these problems because they threaten the stability of your = build.
[WARNING] 
[WARNING] For this reason, future Maven = versions might no longer support building such malformed = projects.
[WARNING] 
[INFO] 
[INFO] = Using the builder = org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedB= uilder with a thread count of 1
[INFO]                =                     =                     =                  
[INFO] = ------------------------------------------------------------------------
[INFO] Building A Camel = Blueprint Route 0.0.1-SNAPSHOT
[INFO] = ------------------------------------------------------------------------
[INFO] 
[INFO] --- = depends-maven-plugin:1.2:generate-depends-file (generate-depends-file) @ = sip-identification-processor ---
[INFO] Created: = /Users/christian/Projekte/ceugster/Entwicklung/Test/Workspace-4.4/ingest-e= ngine/sip-identification-processor/target/classes/META-INF/maven/dependenc= ies.properties
[INFO] 
[INFO] = --- maven-resources-plugin:2.7:resources (default-resources) @ = sip-identification-processor ---
[WARNING] Using platform encoding (UTF-8 actually) to copy = filtered resources, i.e. build is platform dependent!
[INFO] Copying 2 resources
[INFO] 
[INFO] --- = maven-compiler-plugin:3.2:compile (default-compile) @ = sip-identification-processor ---
[INFO] Nothing to compile - all classes are up to = date
[INFO] 
[INFO] --- = maven-resources-plugin:2.7:testResources (default-testResources) @ = sip-identification-processor ---
[WARNING] Using platform encoding (UTF-8 actually) to copy = filtered resources, i.e. build is platform dependent!
[INFO] Copying 7 resources
[INFO] 
[INFO] --- = maven-compiler-plugin:3.2:testCompile (default-testCompile) @ = sip-identification-processor ---
[INFO] Nothing to compile - all classes are up to = date
[INFO] 
[INFO] --- = maven-surefire-plugin:2.18:test (default-test) @ = sip-identification-processor ---
[INFO] Surefire report directory: = /Users/christian/Projekte/ceugster/Entwicklung/Test/Workspace-4.4/ingest-e= ngine/sip-identification-processor/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
SLF4J: Class path = contains multiple SLF4J bindings.
SLF4J: Found binding = in = [jar:file:/Users/christian/.m2/repository/org/slf4j/slf4j-log4j12/1.7.7/sl= f4j-log4j12-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding = in = [jar:file:/Users/christian/.m2/repository/org/apache/karaf/org.apache.kara= f.client/3.0.3/org.apache.karaf.client-3.0.3.jar!/org/slf4j/impl/StaticLog= gerBinder.class]
SLF4J: Found binding in = [jar:file:/Users/christian/.m2/repository/org/ops4j/pax/logging/pax-loggin= g-api/1.8.1/pax-logging-api-1.8.1.jar!/org/slf4j/impl/StaticLoggerBinder.c= lass]
SLF4J:= See http://www.slf4j.org/codes.html#multiple_bindings for an = explanation.
SLF4J: Actual binding is of type = [org.slf4j.impl.Log4jLoggerFactory]
[                =           main] DefaultExamSystem    =           INFO  Pax Exam System (Version: = 4.4.0) created.
[    =                     =   main] ProbeRunner              =       INFO  creating PaxExam runner for class = ch.eugster.ingest.sip.identification.KarafContainerTest
Running ch.eugster.ingest.sip.identification.KarafContainerTest<= /div>
[        =                   main] = ProbeRunner                =     INFO  creating PaxExam runner for class = ch.eugster.ingest.sip.identification.KarafContainerTest
[          =                 main] = ProbeRunner                =     INFO  running test class = ch.eugster.ingest.sip.identification.KarafContainerTest
[          =                 main] = ReactorManager                 = INFO  suite finished
Tests = run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec - in = ch.eugster.ingest.sip.identification.KarafContainerTest

Results :




Tests run: 0, Failures: 0, Errors: 0, = Skipped: 0

[INFO] = ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] = ------------------------------------------------------------------------
[INFO] Total time: 4.244 = s
[INFO] Finished at: = 2015-03-12T20:28:10+01:00
[INFO]= Final Memory: 17M/225M
[INFO] = ------------------------------------------------------------------------


Christian Eugster
Docuteam = GmbH
Langacker 16
Postfach
CH-5405 = Baden-D=C3=A4ttwil








--

Apache Member
Apache Karaf = <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> = Committer & Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author = of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / = Project Manager / Scrum Master 


= --Apple-Mail=_868B4DBC-D10A-43AC-8879-1175EF2698FF--