Aufgrund einer Wartung wird GitLab am 17.08. zwischen 8:30 und 9:00 Uhr kurzzeitig nicht zur Verfügung stehen. / Due to maintenance, GitLab will be temporarily unavailable on 17.08. between 8:30 and 9:00 am.

Commit d33ba0f3 authored by Evgeny Kusmenko's avatar Evgeny Kusmenko

Merge branch 'coverage' into 'master'

Coverage

See merge request monticore/EmbeddedMontiArc/simulators/visualization!4
parents c95632c2 8673ed92
......@@ -7,6 +7,7 @@ masterJobLinux:
image: maven:3-jdk-8
script:
- mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B clean deploy --settings settings.xml
- cat target/coverage/total-report.html
only:
- master
......@@ -22,5 +23,6 @@ BranchJobLinux:
image: maven:3-jdk-8
script:
- mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B clean install --settings settings.xml
- cat target/coverage/total-report.html
except:
- master
\ No newline at end of file
<a href="https://codeclimate.com/github/MontiSim/visualization/maintainability"><img src="https://api.codeclimate.com/v1/badges/3357d170e5a3cc2ea748/maintainability" /></a> [![Build Status](https://travis-ci.org/MontiSim/visualization.svg?branch=master)](https://travis-ci.org/MontiSim/visualization) [![Coverage Status](https://coveralls.io/repos/github/MontiSim/visualization/badge.svg?branch=master)](https://coveralls.io/github/MontiSim/visualization?branch=master)
# Visualization
![pipeline](https://git.rwth-aachen.de/monticore/EmbeddedMontiArc/simulators/server/badges/master/build.svg)
![coverage](https://git.rwth-aachen.de/monticore/EmbeddedMontiArc/simulators/server/badges/master/coverage.svg)
The visualization project uses WebGL and Three.JS to illustrate the data from the simulation in a web browser.
This project communicates with the server via the _SmartFoxServer JavaScript API_, thus the data serialization and the usage of the binary WebSocket protocol for communication with the server is done via this specific API.
......
......@@ -23,6 +23,11 @@
<!-- Deployment properties -->
<project.name>visualization</project.name>
<target.dir>./target</target.dir>
<!-- plugins -->
<jacoco.plugin>0.8.1</jacoco.plugin>
<jasmine.serverPort>8000</jasmine.serverPort>
</properties>
<!-- == PROJECT DEPENDENCIES ============================================= -->
......@@ -123,6 +128,7 @@
</execution>
</executions>
<configuration>
<keepServerAlive>true</keepServerAlive>
<skipTests>true</skipTests>
<jsSrcDir>${project.basedir}/src/main/webapp/js</jsSrcDir>
<jsTestSrcDir>${project.basedir}/src/test/spec</jsTestSrcDir>
......@@ -133,6 +139,48 @@
<haltOnFailure>true</haltOnFailure>
</configuration>
</plugin>
<plugin>
<groupId>com.github.timurstrekalov</groupId>
<artifactId>saga-maven-plugin</artifactId>
<version>1.4.0</version>
<executions>
<execution>
<goals>
<goal>coverage</goal>
</goals>
</execution>
</executions>
<configuration>
<baseDir>http://localhost:${jasmine.serverPort}</baseDir>
<outputDir>${project.basedir}/target/coverage</outputDir>
<noInstrumentPatterns>
<pattern>.*/spec/.*</pattern> <!-- Don't instrument specs -->
</noInstrumentPatterns>
</configuration>
</plugin>
<!-- Test coverage -->
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco.plugin}</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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment