fhoeben / allure-fitnesse-listener

jUnit Listener to incorporate FitNesse results in Allure
Apache License 2.0
1 stars 4 forks source link

fitnesse-results not generated with Allure #7

Open Patje1970 opened 5 years ago

Patje1970 commented 5 years ago

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.

tcnh commented 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.

Patje1970 commented 5 years ago

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.

${project.build.directory}\allure-results ${project.build.directory}\allure-report nl.hsac.fitnesse.junit.allure.JUnitAllureFrameworkListener nl.hsac allure-fitnesse-listener 1.0.3 test copy-resources site copy-resources ${allure.report.directory}\fitnesseResults ${project.build.directory}\allure-results\fitnesseResults true ru.yandex.qatools.allure allure-maven-plugin 2.5 allure-results ${allure.report.directory} I hope you can help with this information. I will look into the listener as well.
tcnh commented 5 years ago

can you paste the xml as a snippet?

Patje1970 commented 5 years ago

image

image

image

image

Patje1970 commented 5 years ago

These are the snippets.

tcnh commented 5 years ago

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>