Mam kilka testów integracyjnych (z Selenium), które są uruchamiane z plusem mavenafe safe. Failsafe generuje tylko pliki raportów XML.Raporty html Failsafe w Jenkins
1) chcę generować raporty HTML
2) chcę mieć łącza w Jenkins do raportów html
Dla 1) Po zainstalowaniu "maven-murowany-report-plugin" korzystać z celu polegającego wyłącznie na raporcie failsafe-report-only.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.13</version>
<executions>
<execution>
<phase>post-integration-test</phase>
<goals>
<goal>failsafe-report-only</goal>
</goals>
</execution>
</executions>
</plugin>
Ale w standardowym wyjściu, nic nie wydaje się być generowane:
[INFO]
[INFO] >>> maven-surefire-report-plugin:2.13:failsafe-report-only (default) @ BaseContrats >>>
[INFO]
[INFO] <<< maven-surefire-report-plugin:2.13:failsafe-report-only (default) @ BaseContrats <<<
[INFO]
[INFO] --- maven-surefire-report-plugin:2.13:failsafe-report-only (default) @ BaseContrats ---
W moim katalogu Fail-Safe-reports, mam tylko pliki raportu XML, ale nie te, HTML.
Czy to jest dobra wtyczka do generowania raportów html dla failsafe?
Dla 2) Po zainstalowaniu wtyczki Jenkins „selen raport HTML” i dodał gromadzeniu działanie post „raportu Publish Selen HTML” i ustawił go z „target/Fail-reports” wartość „Wyniki testów selen lokalizacji” Parametr, ale nic nie jest wyświetlane w interfejsie Jenkins (na pewno dlatego, że mój plik raportów html nie jest generowany ...).
Czy możesz mi pomóc za te 2 punkty?
Myślę, że wtyczka Maven "site" wygeneruje raporty HTML, jeśli tego chcesz, prawda? Albo to, albo wiem, że jenkins może to zrobić, dopóki ustawisz filtr wtyczki Junit, aby zlokalizować pliki wyjściowe testu we właściwej lokalizacji. – djangofan