jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 2.x Cobertura Plugin
  • MCOBERTURA-34

Test failds on a part on my class with EJB on jboss

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Labels:
    None
  • Environment:
    Jboss 4
    Maven
    cobertura 1.7

Description

I use cobertura to check my test complétion on a simple ejb project
This project need jboss running to test all test case client and server side.
I use cargo to start the jboss server
then deploy the ear
and integration tests are done with corebtura during the integration-test maven's phase
But all tests are not seen by cobertura.

When i start jboss manually and run my tests in the maven's test phase , it is ok.

Here attached is my pom.xml

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. XML File
    pom.xml
    10/May/06 9:01 AM
    6 kB
    Pierre-Henri Delaval

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Pierre-Henri Delaval added a comment - 10/May/06 9:02 AM

here is the maven log:

linsrv@Patient $ mvn integration-test
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------- —
[INFO] Building Unnamed - cola:Patient:ejb:0.0.1-SNAPSHOT
[INFO] task-segment: [integration-test]
[INFO] ------------------------------------------------------------------------- —
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
Compiling 5 source files to /home/phde/MyProjects/COLA_WORKSPACE/Patient/target/ classes
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
Compiling 2 source files to /home/phde/MyProjects/COLA_WORKSPACE/Patient/target/ test-classes
[INFO] [surefire:test]
[INFO] Tests are skipped.
[INFO] [ejb:ejb]
[INFO] Building ejb Patient-0.0.1-SNAPSHOT
[INFO] Building jar: /home/phde/MyProjects/COLA_WORKSPACE/Patient/target/Patient -0.0.1-SNAPSHOT.jar
[INFO] [cobertura:instrument {execution: instrument}]
[INFO] Cobertura 1.7 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file
Instrumenting 7 classes to /home/phde/MyProjects/COLA_WORKSPACE/Patient/target/g enerated-classes/cobertura
Cobertura: Saved information on 5 classes.
Instrument time: 772ms

[INFO] Instrumentation was successful.
[INFO] [cargo:start {execution: start-container}]
[INFO] [surefire:test {execution: default}]
[INFO] Setting reports dir: /home/phde/MyProjects/COLA_WORKSPACE/Patient/target/ surefire-reports

-------------------------------------------------------
T E S T S
-------------------------------------------------------
[surefire] Running be.cola.patient.PatientBeanTest
Cobertura: Loaded information on 5 classes.
DEBUG be.cola.patient.PatientBean - createPatientBean(String id=1e4956ba7f000001 00e4f9724d85d8f0, String lastName=1e4956c37f00000100b4d3d5d742b4f5, String first Name=1e4956c47f00000101bf52a56efc6cee, Date birthDate=Wed May 10 14:33:10 CEST 2 006, String address=1e4956c77f00000101cafa9e9b038f9e, String city=1e4956c77f0000 01010b9d04e0b5ff7e, String zipCode=1e4956c77f0000010171732bf168646f) - start
DEBUG org.jboss.security.SecurityAssociation - Using ThreadLocal: false
DEBUG org.jboss.remoting.Client - invoke called, but our invoker is disconnected , discarding and fetching another fresh invoker for: InvokerLocator [socket://12 7.0.0.1:3873/]
DEBUG org.jboss.remoting.transport.socket.SocketClientInvoker - connect called f or: org.jboss.remoting.transport.socket.SocketClientInvoker@120a47e
DEBUG be.cola.patient.PatientBean - getId() - start
DEBUG be.cola.patient.PatientBean - getId() - end - return value=1e4956ba7f00000 100e4f9724d85d8f0
WARN be.cola.patient.PatientBean - Comparing only Bean Id !!!
[surefire] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 5.229 sec
Cobertura: Saved information on 5 classes.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 minutes 20 seconds
[INFO] Finished at: Wed May 10 14:33:15 CEST 2006
[INFO] Final Memory: 7M/16M
[INFO] ------------------------------------------------------------------------

Show
Pierre-Henri Delaval added a comment - 10/May/06 9:02 AM here is the maven log: linsrv@Patient $ mvn integration-test [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------- — [INFO] Building Unnamed - cola:Patient:ejb:0.0.1-SNAPSHOT [INFO] task-segment: [integration-test] [INFO] ------------------------------------------------------------------------- — [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] Compiling 5 source files to /home/phde/MyProjects/COLA_WORKSPACE/Patient/target/ classes [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] Compiling 2 source files to /home/phde/MyProjects/COLA_WORKSPACE/Patient/target/ test-classes [INFO] [surefire:test] [INFO] Tests are skipped. [INFO] [ejb:ejb] [INFO] Building ejb Patient-0.0.1-SNAPSHOT [INFO] Building jar: /home/phde/MyProjects/COLA_WORKSPACE/Patient/target/Patient -0.0.1-SNAPSHOT.jar [INFO] [cobertura:instrument {execution: instrument}] [INFO] Cobertura 1.7 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file Instrumenting 7 classes to /home/phde/MyProjects/COLA_WORKSPACE/Patient/target/g enerated-classes/cobertura Cobertura: Saved information on 5 classes. Instrument time: 772ms [INFO] Instrumentation was successful. [INFO] [cargo:start {execution: start-container}] [INFO] [surefire:test {execution: default}] [INFO] Setting reports dir: /home/phde/MyProjects/COLA_WORKSPACE/Patient/target/ surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- [surefire] Running be.cola.patient.PatientBeanTest Cobertura: Loaded information on 5 classes. DEBUG be.cola.patient.PatientBean - createPatientBean(String id=1e4956ba7f000001 00e4f9724d85d8f0, String lastName=1e4956c37f00000100b4d3d5d742b4f5, String first Name=1e4956c47f00000101bf52a56efc6cee, Date birthDate=Wed May 10 14:33:10 CEST 2 006, String address=1e4956c77f00000101cafa9e9b038f9e, String city=1e4956c77f0000 01010b9d04e0b5ff7e, String zipCode=1e4956c77f0000010171732bf168646f) - start DEBUG org.jboss.security.SecurityAssociation - Using ThreadLocal: false DEBUG org.jboss.remoting.Client - invoke called, but our invoker is disconnected , discarding and fetching another fresh invoker for: InvokerLocator [socket://12 7.0.0.1:3873/] DEBUG org.jboss.remoting.transport.socket.SocketClientInvoker - connect called f or: org.jboss.remoting.transport.socket.SocketClientInvoker@120a47e DEBUG be.cola.patient.PatientBean - getId() - start DEBUG be.cola.patient.PatientBean - getId() - end - return value=1e4956ba7f00000 100e4f9724d85d8f0 WARN be.cola.patient.PatientBean - Comparing only Bean Id !!! [surefire] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 5.229 sec Cobertura: Saved information on 5 classes. [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2 minutes 20 seconds [INFO] Finished at: Wed May 10 14:33:15 CEST 2006 [INFO] Final Memory: 7M/16M [INFO] ------------------------------------------------------------------------
Hide
Permalink
Lars Burgess added a comment - 16/Nov/06 1:40 PM

Is there a solution to this issue yet? I am having a similar problem trying to instrument a war file and gather runtime cobertura metrics in tomcat.

Show
Lars Burgess added a comment - 16/Nov/06 1:40 PM Is there a solution to this issue yet? I am having a similar problem trying to instrument a war file and gather runtime cobertura metrics in tomcat.

People

  • Assignee:
    Unassigned
    Reporter:
    Pierre-Henri Delaval
Vote (1)
Watch (4)

Dates

  • Created:
    10/May/06 9:01 AM
    Updated:
    16/Nov/06 1:40 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.