'Clover'에 해당되는 글 2건

카테고리 없음

1. Only SWAT Coverage
Hudon -> Build(clover포함) -> Unit Test 생략 -> Clover가 만들어준 Jar 파일을 활용한 서비스 등록 -> SWAT으로 Ui Test 진행 -> Clover Coverage DB File 획득! -> maven을 이용한 clover2로 Report 생성

2. With Unit test Coverage
Hudson -> Build(Clover 포함) -> Unit Test 진행 -> Clover가 만들어준 Jar 파일을 활용하여 서비스 등록 -> SWAT으로 Ui Test 진행 -> Clover Coverage DB File 획득 (Unit Test + Ui Test 결과) -> maven을 이용한 clover2로 Report 생성



결과는 굿!

카테고리 없음

Setting

edit project pom.xml file

insert reporting tag to pom.xml file

<reporting>
        <plugins>
                <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-checkstyle-plugin</artifactId>
                        <version>2.2</version>
<configuration>
 <configLocation>/env/hudson/jobs/cafe_main/workspace/cafe_main/checkstyle.xml</configLocation>
                        </configuration>
                </plugin>
                <plugin>
                   <groupId>com.atlassian.maven.plugins</groupId>
                   <artifactId>maven-clover2-plugin</artifactId>
                   <version>${clover.version}</version>
                   <configuration>
                     <licenseLocation>/env/clover.2.x.license</licenseLocation>
                     <generateHtml>false</generateHtml>
                     <generateXml>true</generateXml>
                   </configuration>
                </plugin>
                <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-project-info-reports-plugin</artifactId>
                        <version>2.0.1</version>
                </plugin>
                <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>jdepend-maven-plugin</artifactId>
                </plugin>
                <plugin>
                        <artifactId>maven-pmd-plugin</artifactId>
                        <configuration>
                           <sourceEncoding>utf-8</sourceEncoding>
                           <minimumTokens>10</minimumTokens>
                           <includeTests>false</includeTests>
                           <targetJdk>1.6</targetJdk>
                           <targetJdk>${maven.compiler.target}</targetJdk>
                        </configuration>
                </plugin>
                <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>findbugs-maven-plugin</artifactId>
                        <version>2.0-SNAPSHOT</version>
                        <configuration>
                           <xmlOutput>true</xmlOutput>
                           <xmlOutputDirectory>
                               ${project.build.directory}/findbugs
                           </xmlOutputDirectory>
                        </configuration>
                </plugin>
                <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>taglist-maven-plugin</artifactId>
                        <configuration>
                           <tags>
                              <tag>TODO</tag>
                              <tag>FIXME</tag>
                              <tag>@todo</tag>
                              <tag>@deprecated</tag>
                           </tags>
                        </configuration>
                </plugin>
                <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>cobertura-maven-plugin</artifactId>
                        <configuration>
                           <formats>
                              <format>xml</format>
                           </formats>
                        </configuration>
                </plugin>
        </plugins>
    </reporting>

insert to maven goals

clean:clean
process-classes
war:inplace
clover2:instrument
clover2:aggregate
clover2:clover
-Dmaven.clover.licenseLocation=/env/clover.2.x.license
cobertura:cobertura
findbugs:findbugs
pmd:pmd
checkstyle:checkstyle
-Dmaven.test.failure.ignore=true
-Dmaven.revision.check=false
1
블로그 이미지

개발자

우와신난다