Testen

Diese Seite ist eine Link-Sammlung. Die Seite über Nuclos Unit Tests finden Sie hier.


Unit Tests

Integration Test


GUI Test

Testframeworks

Es gibt zwar eine Anzahl von Testframeworks (u.a. jfcunit, swingunit, fest, apache jelly, jemmy), sie zeichnen sich jedoch alle dadurch aus, dass sie nicht mehr weiterentwickelt werden. Nur jemmy3 lebt noch 'ein bisschen'.

Wichtige Java Software zum Testen

Test Support in Spring

TestNG

Mockito

jMock

Powermock

Weitere Libraries

Sonar Integration

Wie SonarCube die Unit Test Coverage ermittelt

sonar-maven-plugin

Damit diese Kombination funktioniert, benötigt man ein Profile mit den benötigten Angaben zum Sonar Server und zur Datenbank. Normalerweise reicht es, die folgenden Zeilen in der ~/.m2/settings.xml Datei hinzu zu fügen bzw. die Datei entsprechend anzupassen.


<settings>
[...]
  <profiles>
  [...]
       <profile>
                <id>sonar</id>
                <properties>
                        <sonar.host.url>http://****:9000</sonar.host.url>
                        <sonar.login>****</sonar.login>
                        <sonar.password>****</sonar.password>
                        <sonar.jdbc.url>jdbc:postgresql://****:5432/sonar</sonar.jdbc.url>
                        <sonar.jdbc.username>****</sonar.jdbc.username>
                        <sonar.jdbc.password>****</sonar.jdbc.password>
                </properties>
        </profile>

  </profiles>

  <!-- activeProfiles
   | List of profiles that are active for all builds.
   |
  -->
  <activeProfiles>
    <activeProfile>sonar</activeProfile>
  </activeProfiles>

</settings>

Details auch im internen Wiki.

Wichtige Artikel und Hilfen zur Konfiguration

Weitere Artikel zur Konfiguration

Spezielle Probleme mit Mvn (sub) Modulen