Commit 85fb5844 authored by Ignacio Lorenzo García's avatar Ignacio Lorenzo García
Browse files

Añade JaCoCo para codecoverage

parent e5ffca86
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ test:
  stage: test
  script:
    - mvn $MAVEN_CLI_OPTS test
    - "cat target/site/jacoco/index.html"

deploy:
  stage: deploy
+23 −0
Original line number Diff line number Diff line
@@ -106,6 +106,29 @@
					<autoReleaseAfterClose>false</autoReleaseAfterClose>
				</configuration>
			</plugin>


			<plugin>
				<groupId>org.jacoco</groupId>
				<artifactId>jacoco-maven-plugin</artifactId>
				<version>0.7.9</version>
				<executions>
					<execution>
						<id>pre-unit-test</id>
						<goals>
							<goal>prepare-agent</goal>
						</goals>
					</execution>
					<execution>
						<id>post-unit-test</id>
						<phase>test</phase>
						<goals>
							<goal>report</goal>
						</goals>
					</execution>
				</executions>
			</plugin>

		</plugins>
	</build>
	<dependencies>