Open Patje1970 opened 5 years ago
If I understand it correctly, your issue is that the fitnesse result htmls are not copied in the allure report?
If that's the case: this is because the listener expects the results in the fitnesse-results folder (The listener was built with HsacFitnesseRunner in mind, because it generates more or less standalone html report pages and junit xml output per page.)
How do you run your tests? maybe some simple changes to the listener will be enough to suit your needs.
Thank you for your reply. We run the tests with Xebium and are using the version of Fitnesse version 20171212 with that.
This is part of our POM about Allure/Fitnesse.
can you paste the xml as a snippet?
These are the snippets.
Assuming you're using hsac fitnesse runner and generate fitnesse html reports in target\fitnesse-results, can you try it using the newer maven plugin:
<reporting>
<excludeDefaults>true</excludeDefaults>
<plugins>
<plugin>
<groupId>io.qameta.allure</groupId>
<artifactId>allure-maven</artifactId>
<version>2.10.0</version>
<configuration>
<resultsDirectory>allure-results</resultsDirectory>
<reportDirectory>${allure.report.directory}</reportDirectory>
<reportVersion>2.10.0</reportVersion>
</configuration>
</plugin>
</plugins>
</reporting>
and set the output directory to allure's report directory/data
for the fitnesse result html's:
<execution>
<id>copy-resources</id>
<phase>site</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${allure.report.directory}/data/fitnesseResults</outputDirectory>
<resources>
<resource>
<directory>${project.build.directory}/fitnesse-results</directory>
<filtering>true</filtering>
</resource>
</resources>
</configuration>
</execution>
We have been trying to get Allure working with Fitnesse. Using the several info's available here, for example: https://github.com/fhoeben/allure-fitnesse-listener/blob/master/README.md Almost everything seems to work, except the following.
When I generate a report, it will not show any report. After some researching and more testing I see when a generate a report, that there is no file fitnesse-results generated. So I guess that is why I get no results on a page but a blank page after I give the command Allure open. Can you tell me how I get the fitnesse-results file into the allure-report file?
I need to add we are using the Xebium version for Fitnesse. With that Fitnesse puts the original testresults in a file called testResults, not fitnesseResults. (Xebium\FitNesseRoot\files\testResults)
Hope someone can help me figure this out.