Uploaded image for project: 'Clover'
  1. Clover
  2. CLOV-949

Coverage contexts broken in Clover 3

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • High
    • 3.1.4
    • 3.0.2
    • Database, Maven plugin
    • None

    Description

      The following configuration produces different results in Clover 3.0.2 compared with 2.6.3:

      <plugin>
      	<groupId>com.atlassian.maven.plugins</groupId>
      	<artifactId>maven-clover2-plugin</artifactId>
      	<version>3.0.2</version>
      	<configuration>
      		<statementContexts>
      			<log1>if.*\(isDebugEnabled.*</log1>
      			<log2>System.out.println\(.*\);</log2>
      		</statementContexts>
      		<contextFilters>log1,log2</contextFilters>
      	</configuration>
      </plugin>
      

      In Clover 3.0.2 the log1 context does not work:

      Attachments

        1. screenshot-1.jpg
          screenshot-1.jpg
          57 kB
        2. tutorial.tar.gz
          515 kB

        Activity

          People

            bhumphreys BrendanA
            andrew.myers Andrew Myers [Atlassian]
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: