diff options
author | stark, steven <ss820f@att.com> | 2018-04-13 15:59:33 -0700 |
---|---|---|
committer | stark, steven <ss820f@att.com> | 2018-04-13 15:59:33 -0700 |
commit | 2c374d687fbfcaadf99509ed632f168d602859cb (patch) | |
tree | 7d9f7a20da28fe92a5eaeaa072a673512e92f4f5 /pom.xml | |
parent | 6b60ac504256b6388e88647df65f6648eeb80e92 (diff) |
[VVP] adding config for test coverage report
modifed tox, pom, and tests to create coverage report
Change-Id: I98321c3d5c205622a3b4f5662566934f323ba70f
Issue-ID: VVP-56
Signed-off-by: stark, steven <ss820f@att.com>
Diffstat (limited to 'pom.xml')
-rw-r--r-- | pom.xml | 39 |
1 files changed, 39 insertions, 0 deletions
@@ -25,9 +25,28 @@ <docker.latest.tag>${project.version}-latest</docker.latest.tag> <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry> <docker.push.registry>nexus3.onap.org:10003</docker.push.registry> + <!--sonar--> + <sonar.sourceEncoding>UTF-8</sonar.sourceEncoding> + <sonar.sources>.</sonar.sources> + <sonar.python.coverage.reportPath>django/reports/coverage.xml</sonar.python.coverage.reportPath> + <sonar.language>py</sonar.language> + <sonar.pluginName>python</sonar.pluginName> + <sonar.inclusions>django/**.py</sonar.inclusions> </properties> <build> + <pluginManagement> + <plugins> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>exec-maven-plugin</artifactId> + <version>1.2.1</version> + <configuration> + <executable>${session.executionRootDirectory}/mvn-phase-script.sh</executable> + </configuration> + </plugin> + </plugins> + </pluginManagement> <plugins> <plugin> <groupId>org.sonatype.plugins</groupId> @@ -97,6 +116,26 @@ </execution> </executions> </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>exec-maven-plugin</artifactId> + <version>1.2.1</version> + <executions> + <execution> + <id>test script</id> + <phase>test</phase> + <goals> + <goal>exec</goal> + </goals> + <configuration> + <arguments> + <argument>__</argument> + <argument>test</argument> + </arguments> + </configuration> + </execution> + </executions> + </plugin> </plugins> </build> <distributionManagement> |