+ sonarqube integration
+ removed unnecessary stuff
This commit is contained in:
Johannes Theiner 2019-05-23 15:15:30 +02:00
parent 6d9aa153fb
commit 115950bf23
5 changed files with 64 additions and 45 deletions

28
README.md Normal file
View File

@ -0,0 +1,28 @@
![BauDas Logo](https://services.joethei.xyz/images/bauDas.png)
#Kundenkarten Verwaltung
[![Build Status](https://teamcity.joethei.xyz/app/rest/builds/buildType:(id:Studium_Programmierung_Softwareprojektmanagement_SpmProd)/statusIcon)](https://tcstatus.joethei.space/dashboard/spm)
[![Quality Gate](https://sonarqube.joethei.xyz/api/project_badges/measure?project=Studium_Programmierung_Softwareprojektmanagement&metric=alert_status)
![Code Coverage](https://sonarqube.joethei.xyz/api/project_badges/measure?project=Studium_Programmierung_Softwareprojektmanagement&metric=coverage)](https://sonarqube.joethei.xyz/dashboard?id=Studium_Programmierung_Softwareprojektmanagement)
## Requirements
- Java 8
- Maven 3
- Tomcat 9
## Development Setup
- clone this repository
- import it into your preferred editor
- start the server with maven goal ````tomcat7:run````
- change stuff
- restart the server if needed
## TODO: better Name for this
- clone this repository
- run maven goal ````package````
- war can be found in target folder
© 2019 Ihni GmbH

30
pom.xml
View File

@ -16,8 +16,10 @@
<java.version>1.8</java.version>
<checkstyle_file>checkstyle.xml</checkstyle_file>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jacoco.dataFile>${project.build.directory}/jacoco.exec</jacoco.dataFile>
</properties>
<developers>
<developer>
<name>Johannes Theiner</name>
@ -213,6 +215,34 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.4</version>
<executions>
<execution>
<id>default-prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>default-report</id>
<phase>prepare-package</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
<execution>
<id>default-check</id>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

View File

@ -65,18 +65,6 @@
<li>
<div class="divider"></div>
</li>
<li>
<div class="input-field container">
<label>Gruppenauswahl</label>
<br>
<select>
<option value="0">alle</option>
<option value="1">Gruppe 1</option>
<option value="2">Gruppe 2</option>
<option value="3">Gruppe 3</option>
</select>
</div>
</li>
<li>
<div class="input-field container">
<label for="dataset">Datensatzauswahl</label>

View File

@ -11,12 +11,9 @@
<div class="col s12 m12">
<div id="overview" class="card white">
<div class="center">
<span class="card-title center">Übersicht</span>
</div>
<div class="card-action center">
<a href="#">Tagesübersicht</a>
<a href="#">Wochenübersicht</a>
<span class="card-title center">Wochenübersicht</span>
</div>
<div class="card-content">
<div>
<canvas id="overview_chart" width="1000" height="400"></canvas>
@ -52,31 +49,7 @@
</div>
</div>
<%-- <!--Verkaufte Artikel-->
<div class="col s12 m6">
<div id="sold_articles" class="card white">
<div class="card-content">
<div class="center">
<span class="card-title center">Verkaufte Artikel</span>
</div>
<div class="center">
<div class="input-field col s12">
<select>
<option value="0">Artikel 1</option>
<option value="1">Artikel 2</option>
<option value="2">Artikel 3</option>
</select>
<label>Artikel</label>
</div>
</div>
<div>
<canvas id="sold_articles_cake" width="1000" height="400"></canvas>
</div>
</div>
</div>
</div>--%>
<!--Top Flop Artikel-->
<!--Verkaufszahlen-->
<div class="col s12 m12">
<div id="top_articles" class="card white">
<div class="center">

View File

@ -30,7 +30,7 @@ class WeekOverviewTest {
AtomicReference<Map<String, Map.Entry<Double, Integer>>> result = new AtomicReference<>();
assertTimeout(Duration.ofMillis(1), () -> result.set(overview.getResult()));
assertTimeout(Duration.ofMillis(5), () -> result.set(overview.getResult()));
assertEquals(2477, result.get().get("Montag").getKey());
@ -57,7 +57,7 @@ class WeekOverviewTest {
AtomicReference<Map<String, Map.Entry<Double, Integer>>> result = new AtomicReference<>();
assertTimeout(Duration.ofMillis(3), () -> result.set(overview.getResult()));
assertTimeout(Duration.ofMillis(7), () -> result.set(overview.getResult()));
assertEquals(26273, result.get().get("Montag").getKey());
@ -84,7 +84,7 @@ class WeekOverviewTest {
AtomicReference<Map<String, Map.Entry<Double, Integer>>> result = new AtomicReference<>();
assertTimeout(Duration.ofMillis(30), () -> result.set(overview.getResult()));
assertTimeout(Duration.ofMillis(60), () -> result.set(overview.getResult()));
assertEquals(295688, result.get().get("Montag").getKey());