karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Eugster <c.eugs...@docuteam.ch>
Subject Re: Pax exam Test does not run in Karaf container
Date Thu, 12 Mar 2015 19:51:33 GMT
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ättwil
+41 (0)56 470 03 37
c.eugster@docuteam.ch





> 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 <mailto: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-engine/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.SingleThreadedBuilder
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-engine/sip-identification-processor/target/classes/META-INF/maven/dependencies.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-engine/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/slf4j-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.karaf.client/3.0.3/org.apache.karaf.client-3.0.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in [jar:file:/Users/christian/.m2/repository/org/ops4j/pax/logging/pax-logging-api/1.8.1/pax-logging-api-1.8.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings <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
> 
> 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ättwil
> +41 (0)56 470 03 37 <tel:%2B41%20%280%2956%20470%2003%2037>
> c.eugster@docuteam.ch <mailto:c.eugster@docuteam.ch>
> 
> 
> 
> 
> 
> 
> 
> 
> -- 
> 
> Apache Member
> Apache Karaf <http://karaf.apache.org/ <http://karaf.apache.org/>> Committer
& PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/ <http://wiki.ops4j.org/display/paxweb/Pax+Web/>>
Committer & Project Lead
> blog <http://notizblog.nierbeck.de/ <http://notizblog.nierbeck.de/>>
> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS <http://bit.ly/1ps9rkS>>
> 
> Software Architect / Project Manager / Scrum Master 
> 


Mime
View raw message