| Issue 7: | .scenario files generation doesn't work | |
| 1 person starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem? 1. run maven [...] -DgenerateReport=scenarios -DoutputFolder=target What is the expected output? What do you see instead? In the target/Tumbler-reports directory there should be .scenario files containing the textual reports. Instead the html ones are found. What version of the product are you using? On what operating system? 0.30.0 in Ubuntu 11.04 Please provide any additional information below. The documentation (Tumbler.html, paragraph "4. Generating reports from Java") says that -DgenerateReport=scenario should be used as maven parameter. Looking at the code (ScenarioListener.generateReport()) it's clear that is has to be -DgenerateReport=scenarios (with an extra 's'). Please fix that in the online documentation. Besides: I have noticed that -DoutputFolder=target has to be specified. I would instead default the output folder to the target directory, in case the -DoutputFolder parameter is not specified. Anyways: great tool and great job! I am looking forward for the new version (with fixes ;-))!
May 17, 2011
Project Member
#1
lipinski...@gmail.com
Status:
Invalid
May 17, 2011
Thanks. The problem is that we need the -D switches. We need to generate reports on demand, not automatically during maven build.
The surfire configuration we are using is:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<useFile>false</useFile>
<systemProperties>
<property>
<name>generateReport</name>
<value>html</value>
</property>
</systemProperties>
<excludes>
<exclude>**/*</exclude>
</excludes>
</configuration>
</plugin>
As you can see, the exclude part is on purpose: no run of tests during build time, only when we need it.
Can it be fixed?
May 17, 2011
You cannot use -D because of Maven not Tumbler. Still, I think that you should have 2 profiles in Maven - one with the tests generating the reports, and one (default) without. That would solve your problem - e.g. you'd call mvn clean package -PwithReports if you wanted the report. To see how to configure profile, read this: http://maven.apache.org/guides/mini/guide-building-for-different-environments.html Let me know if it works for you. |