Hey all,
Looking for feedback if anyone has a good way to, when you finalize the code, run one last Junit run and create a PDF-version of the junit report.
Maven PDF plugin with Surefire report:
http://maven.apache.org/plugins/maven-pdf-plugin/surefire-report.html
You can use http://junitpdfreport.sourceforge.net
Unfortunately maven is not supported. You have to configure it with AntRun plugin.
Related
Hey I am really desperate. I want to build a fat jar with Dropwizard (and Maven) but I realize the shade plugin won't include test classes so no tests are running.
Is there an easy way to run those tests with a "clean install" goal. I can't believe dropwizard 's getting started page tells you to use this shade plugin if it has tests problems.
Please help me!!
I am really sorry, I panic big time and the bug was because of another thing. The Surefire plugin has a bug in a particular version and when I ran it in a docker container the tests weren't recognized. SORRY
I'm working on Cucumber automation using selenium webdriver. I'm fairly new and have not used Maven just yet. I have not been able to generate an html report. Currently, my target remains blank.
Is it because I'm not using Maven or is it possible to create/generate without it
If YES, then how?
If NO, then whats the reason?
You can use cucumber without maven, you just need to add cucumber .jar file manually. (here you have exemple)
However I recommend you to use maven or ant or gradle. It does the same thing but automatically.
Which is the best and featured way to generate reports either by using Maven or ANT? What are the features and differences ? I am using selenium webDriver with TestNG. By using testNG should I prefer "build.xml" or "pom.xml" ?
Maven and ant are build tools. What generates the reports is Testng. So if you use ant or maven, the report generated will still be the same. You can probably do a comparison between maven and ant as build tools, not as a report generation framework, to pick up the one you find better. If you might find this any help.. A blog written long back to describe the ecosystem..http://niharikawhatsnext.wordpress.com/2012/02/15/test-automation-to-building-to-execution-to-scheduling-java/
You can use both maven and ANT to produce XSLT reports which uses TestNg generated output.html. Both are mainly used for build purpose not for report generation.
The XSLT reports generated from maven and ANT both looks same. But there are many advantages in Maven over ANT in testing frame works (I am assuming you know what are those). So I would personally prefer Maven. Please go through the below links which you might found helpful.
http://www.javatpoint.com/difference-between-ant-and-maven
http://blog.varunin.com/2012/05/generate-testng-xslt-report-using-maven.html
I have the following setup. I use maven /soapUI maven plugin /soapUI to execute tests on a webservice. My target is to display the test results in sonar. As there is no real build going on in maven, there is nothing to analyze for sonar (if i understood that correct). Is there a a soapUI report format, that can be reused by sonar? Has anyone made experiences with such a setup?
Thanks.
Why not try and run soapui from Junit?
http://www.soapui.org/Test-Automation/integrating-with-junit.html
Maven will run them automatically as part of the build and Sonar should display the results normally.
I am running my Integration Tests using maven and the failsafe plugin. The tests themselves are executed using pax-exam (which uses pax-runner). Failsafe runs at the integration-test phase, and Cobertura at verify.
While I get reports for all my junit tests, I get nothing from the Integration Tests.
Is this even technically feasible, or would pax-runner need to support cobertura directly?
Any idea how I could solve this? I am also open to any other plugin that helps, but I do need to run integration tests on OSGi bundles..
Thanks!
Well, it's been a while. The closest thing I've found that could help out is instrumenting the builds and collecting cobertura.ser files after the pax-exam tests have run. It is far from a simple setup. I'll report as I go! relevant reference