I have installed Hudson Post Build task in Jenkins. Now what to do to see junit report?
I tried setting up the source path to publish JUnit reports under test report XML tag. But i am not able to see the XML.
Related
I'm currently building scripts using Selenium Builder (which saves files as JSON) and i'm having a hard time running these scripts on VSTS. My question specifically is, can Visual Studio Team Services build JSON scripts and tie them in with its C.I.? If so, which approach must I take in order to do this / make it possible?
Thanks!
Here is my steps for your reference:
Deploy your own private build agent by following this link.
Configure the required environment on the build agent like Selenium Driver, Firefox so that the testing can be run on the build agent.
Upload the json file generated by Selenium Builder into VSTS Repository.
Create a build definition with two Command Line tasks: The first one runs npm install command to install se-interpreter:
And the second one run se-interpreter command to run the test in json file:
Queue the build, you will see the test been executed during the build:
Intellij 13.0.2 JUnit test do not run in Debug
I have created several JUnit tests that run fine in Intellij, but when I try to Debug the same test, the files build and the test is not executed. I look in the event log and all it says is All Files are up to date. It does run NMake, but nothing more.
I don't know if this is related, but the View | Tool WIndows | Debug is disabled.
What do I need to do to Debug JUnit tests?
Thanks
Select Run --> Run Configurations... from the IntelliJ window
Select JUnit on the left side.
On the right side there is a "Before Launch:" section for configuring the behavior before launching JUnit tests.
See also the help page for this.
I'm running integration tests using TestNG and Hudson combination. I'm able to generate my own customized JUnit XML files for Hudson for reporting purpose. And Hudson displays my customized report greatly. Now I want to attach test results which are of .txt files to my test class/test method. I have taken JUnit Attachments Plugin and installed it on Hudson. I generated the .txt files into the surefire-reports//*-output.txt directory as per the example mentioned in the following link: http://wiki.hudson-ci.org/display/HUDSON/JUnit+Attachments+Plugin.
But JUnit Attachments Plugin is not working on Hudson. I'm unable to see the attachments in Hudson.
Any suggestions to make it work?
I am able to successfully run my JUnit test suite from the command line and now I want run these tests from Hudson.
However , for Hudson to generate the reports , it needs a results file (I think in xml format) .
How do I generate a results file from JUnit ?
I am using the following command to run the tests :
java com.nvidia.tests.TestSuite1
Thanks in advance .
Parag.
If you're using ant, you can look at the JUnit task for ant. This is probably the easiest way. You can just add the task at the appropriate place in the script.
If you're using maven, look at the surefire plugin for maven which will automatically run the tests and create the reports in jenkins.
EDIT: If you're not using any build tool (which you should be), then just add the ant build script to jenkins, and you should get the reports automatically.
I am trying to generate Emma Code Coverage Report from Hudson.
I have added "Record Emma coverage report" plugin in Hudson
This plug-in needs a path where generated emma xml report will be placed.
I have added that path "/opt/dfte/hudson" but it is saying that
Recording Emma reports /opt/dfte/hudson/emma.xml
Finished: FAILURE
Did I missed any steps??
Please help me.
Thanks
Your build needs to generate the Emma report. Hudson then picks up the XML file generated by the Emma run from your build, and renders it nicely.
You first need to integrate EMMA into your Maven or Ant build by following these instructions: http://wiki.hudson-ci.org//display/HUDSON/Emma+Plugin. If you are using Maven you can test these build changes by running "mvn emma:emma" -- if it's working you should have an emma directory under your site directories containing a coverage.xml and html files. While I haven't tried it with Ant, I believe it should be a similar process and output.
Once that is happening, you just need to enable the Hudson EMMA plugin by checking "Record Emma coverage report" in your job configuration. For the Maven example above (and likely Ant) you do not need to specify the file path as it will automatically find coverage.xml files in your modules. Make sure this Hudson job also executes your tests. You will then get a nice chart on your job's page showing % trends for class, method, block, and line coverage.