ok added this:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<configuration>
<check>
<branchRate>0</branchRate>
<lineRate>85</lineRate>
<haltOnFailure>${failsOnError}</haltOnFailure>
<!-- <totalBranchRate>85</totalBranchRate>-->
<!-- <totalLineRate>85</totalLineRate>-->
<!-- <packageLineRate>85</packageLineRate>-->
<!-- <packageBranchRate>85</packageBranchRate>-->
<regexes>
<regex>
<pattern>nl.tryllian.tolselfservice.webapp.interceptor.UserRoleAuthorizationInterceptor</pattern>
<branchRate>0</branchRate>
<lineRate>0</lineRate>
</regex>
</regexes>
</check>
</configuration>
<executions>
<execution>
<phase>test</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
and that helps...
thinking about it... there should be a jirra about this.
matt here some extra power to make the next appfuse version
**************** ;)
tibi
tibi wrote:
> somehow i have the same problem with a new project.
> i project i started 6 weeks ago is working.
>
> i'm comparing both to try and find the differance, but no luck jet.
>
> tibi
>
> tibi wrote:
>
>> i have this in my pom file for cobertura:
>> <plugin>
>> <groupId>org.codehaus.mojo</groupId>
>> <artifactId>cobertura-maven-plugin</artifactId>
>> <version>2.2</version>
>> <configuration>
>> <formats>
>> <format>html</format>
>> <format>xml</format>
>> </formats>
>> </configuration>
>> </plugin>
>>
>> so upgrade to 2.2 may help
>>
>> tibi
>>
>> Kenny Ha wrote:
>>
>>
>>> I'm using Maven version 2.1.0 and Cobertura version 2.0
>>> But my generated report by Cobertura is not like example on
>>> http://cobertura.sourceforge.net/ http://cobertura.sourceforge.net/ Mine
>>> display all classes are 0% like this :
>>>
>>> ....
>>>
>>> All Packages
>>>
>>> Classes
>>> Address (0%)
>>> App (0%)
>>> BaseAction (0%)
>>> BaseActionTestCase (0%)
>>> BaseDaoTestCase (0%)
>>> BaseManagerMockTestCase (0%)
>>> BaseManagerTestCase (0%)
>>> BaseObject (0%)
>>> Constants (0%)
>>> ConstantsTag (0%)
>>> ConstantsTei (0%)
>>> ConvertUtil (0%)
>>> CountryTag (0%)
>>> CurrencyConverter (0%)
>>> DateConverter (0%)
>>> DateConverter (0%)
>>> DateUtil (0%)
>>> FileUploadAction (0%)
>>> GenericDao (N/A)
>>> ....
>>>
>>> What's the problem?? Help me!
>>>
>>> Thanks!
>>>
>>>
>>> tibi wrote:
>>>
>>>
>>>
>>>> what version are you using?
>>>> this one:
>>>> Report generated by Cobertura <http://cobertura.sourceforge.net/> 1.7
>>>> (on the site page in the footer)
>>>>
>>>>
>>>> tibi
>>>>
>>>> Kenny Ha wrote:
>>>>
>>>>
>>>>
>>>>> I run mvn site or mvn cobertura:cobertura command, it build successful.
>>>>> But when I access Cobertura Test Coverge Report page,nothing is test,all
>>>>> classes are 0% :
>>>>>
>>>>>
>>>>> ....
>>>>>
>>>>> All Packages
>>>>>
>>>>> Classes
>>>>> Address (0%)
>>>>> App (0%)
>>>>> BaseAction (0%)
>>>>> BaseActionTestCase (0%)
>>>>> BaseDaoTestCase (0%)
>>>>> BaseManagerMockTestCase (0%)
>>>>> BaseManagerTestCase (0%)
>>>>> BaseObject (0%)
>>>>> Constants (0%)
>>>>> ConstantsTag (0%)
>>>>> ConstantsTei (0%)
>>>>> ConvertUtil (0%)
>>>>> CountryTag (0%)
>>>>> CurrencyConverter (0%)
>>>>> DateConverter (0%)
>>>>> DateConverter (0%)
>>>>> DateUtil (0%)
>>>>> FileUploadAction (0%)
>>>>> GenericDao (N/A)
>>>>> GenericDaoHibernate (0%)
>>>>> GenericManager (N/A)
>>>>> GenericManagerImpl (0%)
>>>>> HibernateExtensionPostProcessor (0%)
>>>>> LabelValue (0%)
>>>>> LocaleFilter (0%)
>>>>> LocaleRequestWrapper (0%)
>>>>> LookupDao (N/A)
>>>>> LookupDaoHibernate (0%)
>>>>> LookupManager (N/A)
>>>>> LookupManagerImpl (0%)
>>>>> MailEngine (0%)
>>>>> PasswordHintAction (0%)
>>>>> Person (0%)
>>>>> PersonAction (0%)
>>>>> PersonDao (N/A)
>>>>> PersonDaoHibernate (0%)
>>>>> PersonManager (N/A)
>>>>> PersonManagerImpl (0%)
>>>>> ReloadAction (0%)
>>>>> RequestUtil (0%)
>>>>> ....
>>>>>
>>>>> Why?? Please help me solve this.
>>>>>
>>>>> Thanks and Best Regards!
>>>>> Kenny.
>>>>>
>>>>>
>>>>>
>>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: [email protected]
>>>> For additional commands, e-mail: [email protected]
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]