[ http://jira.codehaus.org/browse/MCOBERTURA-23?page=comments#action_62440 
] 

Brett Porter commented on MCOBERTURA-23:
----------------------------------------

I believe this was fixed in the latest version. What version are you using?


> Fails to run tests
> ------------------
>
>          Key: MCOBERTURA-23
>          URL: http://jira.codehaus.org/browse/MCOBERTURA-23
>      Project: Maven 2.x Cobertura Plugin
>         Type: Bug

>  Environment: JUnit 4. Maven 2.0.3. Java 1.5. Linux, 64 bit processor.
>     Reporter: Adrian
>     Priority: Critical

>
>
> I have an EJB 3.0 project that I have JUnit tests for. The tests launch the 
> JBoss EJB 3.0 Embeddable environment on setUp() and shut it down on 
> tearDown(). When I run the following command 
> mvn clean cobertura:clean cobertura:cobertura
> Maven runs and instruments the code, but it appears as if no tests ever run.
> If you want further info I will watch this issue and will reply to your 
> comments.
> See below for maven output:
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'cobertura'.
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] Building PICS Core EJB
> [INFO]    task-segment: [clean, cobertura:clean, cobertura:cobertura]
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] [clean:clean]
> [INFO] Deleting directory /home/apill/workspaces/pics/pics-core-ejb/target
> [INFO] Deleting directory 
> /home/apill/workspaces/pics/pics-core-ejb/target/classes
> [INFO] Deleting directory 
> /home/apill/workspaces/pics/pics-core-ejb/target/test-classes
> [INFO] [cobertura:clean {execution: default}]
> [INFO] [cobertura:clean]
> [INFO] Preparing cobertura:cobertura
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [WARNING]
>         Artifact com.dolby.pics:dd-pics-test-data:jar:0.2-SNAPSHOT:test 
> retains local scope 'test' overriding broader scope 'compile'
>         given by a dependency. If this is not intended, modify or remove the 
> local scope.
> [INFO] [compiler:compile]
> Compiling 51 source files to 
> /home/apill/workspaces/pics/pics-core-ejb/target/classes
> [INFO] [cobertura:instrument]
> [INFO] Cobertura 1.7 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file
> Instrumenting 53 classes to 
> /home/apill/workspaces/pics/pics-core-ejb/target/generated-classes/cobertura
> Cobertura: Saved information on 51 classes.
> Instrument time: 687ms
> [INFO] Instrumentation was successful.
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [WARNING]
>         Artifact junit:junit:jar:4.0:test retains local scope 'test' 
> overriding broader scope 'compile'
>         given by a dependency. If this is not intended, modify or remove the 
> local scope.
> [INFO] [compiler:testCompile]
> Compiling 6 source files to 
> /home/apill/workspaces/pics/pics-core-ejb/target/test-classes
> [INFO] [surefire:test]
> [INFO] Setting reports dir: 
> /home/apill/workspaces/pics/pics-core-ejb/target/surefire-reports
> [INFO] [cobertura:cobertura]
> [INFO] Cobertura 1.7 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file
> Cobertura: Loaded information on 51 classes.
> Report time: 1563ms
> [INFO] Cobertura Report generation was successful.
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 20 seconds
> [INFO] Finished at: Wed Mar 29 14:25:12 BST 2006
> [INFO] Final Memory: 9M/34M
> [INFO] 
> ------------------------------------------------------------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to