Skip to content
This repository was archived by the owner on Oct 28, 2019. It is now read-only.

Latest commit

 

History

History
33 lines (25 loc) · 1.61 KB

ci.md

File metadata and controls

33 lines (25 loc) · 1.61 KB

{% extends "de_docs-content.tmpl" %} {% block primary %}

Integration in einen CI-Server

Achtung: Dies ist ein noch unvollständiger Entwurf!

Einfache Testreports für CI-Server

Basierend auf dem Test Anything Protocol (TAP) erstellt retest einen einfachen und übersichtlichen Testreport nach jeder via CLI angestoßenen Ausführung von Execsuites. Die zugehörige Datei findet sich standardmäßig unter ${RETEST_WORKSPACE}/latest_report.tap.

Zur Integration in gängige CI-Server existiert in der Regel ein entsprechendes Plugin. Für Jenkins etwa kann das TAP Plugin genutzt werden. Fügen Sie hierzu in der Konfiguration Ihres Jenkins-Projekts die Post-Build-Aktion "Publish TAP Results" hinzu, dabei empfehlen wir folgende Konfiguration:

  • Verbose (if checked will print a message for each TAP stream file)
  • Fail the build if no test results (files) are found
  • Failed tests mark build as failure
  • Output TAP to console
  • Enable subtests
  • Discard old reports
  • TODO directive fails a test
  • Include comment diagnostics (#) in the results table
  • Validate number of tests
  • Is TAP plan required?
  • Show only failures
  • Strip single parents
  • Flatten TAP result
  • Skip if build not successful

Von nun an können Sie direkt in Jenkins die Testergebnisse von retest begutachten, welche sich ebenfalls auf das Build-Ergebnis (keine Differences: grün, Differences: gelb, Errors: rot) auswirken.

{% endblock primary %}