junit test results in tfs - junit

How to make TFS 2010 show junit test results, that were generated by third-party tool? If it can't, probably, there is a way to convert junit report to xunit/nunit/mstest report. It would be also great! Thanks.

In order to publish Junit tests during TFS-Build you can make use of TFS Build Extension Power Tool.In there you can find a set of XSLT transforms from JUnit output into TRX. Employing TFS-Build to upload TRX should from then be possible.

Related

Cmd execution for unit test report and code coverage report

We have junit based tests (maven project) and using EclEmma for code coverage. Able to get jUnit execution report and code coverage report from Eclipse. But I want to exectue unit tests from commandline and would like to get unit tests report and code coverage report. Code coverage report should show uncovered lines as well.
I was going through website (http://www.eclemma.org) and unable to find expected info.
Is there any commands available with or W/O tools?
EclEmma is based on JaCoCo. Among other integrations there are Maven plugin and Ant tasks for it. As you can see - all JaCoCo documentation can be found on the site of EclEmma that you mentioned.

Prevent Junit output to be printed in Gradle test reports

Is there a way to prevent the
<system-out><![CDATA ... ]]></system-out> to be included in the junit reports when using gradle java plugin and the test task ?
I run a lot of tests with heavy outputs, and generating the HTML report results in a Java Heap space.
The report generation is done by ant with the junit report task for the moment.
I'm integrating gradle in a heavy ant script, and it will take time to move everything to gradle.
During the transition phase, I would like to keep the junit report generation provided by Ant.
To my knowledge, there is no way to prevent system out from showing up in Gradle's JUnit reports. However, if reporting is done in Ant, you can disable Gradle's JUnit reports.

How to automate Eclipse using QTP 10

This is first time i was thinking about this scenario. I have few scripts in Selenium webdriver and few script in QTP.
Using Webdriver, I have automated web based HTML5 Application via eclipse Juno
and using QTP, I have automated SAP Purchase request placing order.
Now both become depended module for me, from SAP data's are flowing to web base application.
And I'm planning to automate eclipse via QTP so that it will execute selenium script.
Can someone provide me how to proceed with situation and give me some strategy to proceed.
Thanks in advance
Raj R
Since the Eclipse UI is written in Java you should be able to automate Eclipse using QTP's Java addin.
If it is reasonable possible, I wouldn't record actions on Eclipse from QTP. Are you aware that eclipse has a rich set of runtime options? See if you can create an eclipse .ini file that starts the desired Selenium test. When it works as desired, you can start this file with the SystemUtil.Run statement in QTP.

WSO2 JUnit/Integration Testing

I'm in the process of building a Carbon Archive using the new WSO2 Developer Studio. I'm trying to work out how I can wrap the components (Sequences/Proxies etc) in JUnit tests. These tests will need to run as part of a CI build process (Jenkins) in order to detect errors with any modified code. I've done some research and can't seem to find anything that immediately stands out on how to achieve this. I did find this link https://wso2.org/jira/browse/TOOLS-855
which suggests that it hasn't yet been implemented. Can anyone confirm when this will be implemented or if there is any way at present to achieve this?
There is currently no straight forward way to implement this scenario and this feature will be supported in a future version.
One mechanism i can think is that, add a separate Test module as a part of the build which executes after building C-Apps.
So what happens in here is that, first Jenkins produce the CAR file for C-Apps. Then Maven start executing the JUnit test suite. Before the execution of Test Suite, you can configure maven to copy the CAR files to Servers and start up server. Then execute the Test Cases against the started up server.
This way you can deploy the new CAR files in your Carbon Server and execute the tests against the new configuration in the Server.
Thanks and Regards,
Harshana

How to use lcov test coverage tool with Hudson continuous integration?

In my environment developers use lcov from command line when working with source code's module tests.
I would like to know if there is a way to easily add reports from lcov to Hudson's builds? I would ease and automate the whole procedure of gathering test source code coverage.
If you are looking to publish the generated HTML reports along with your job/builds, have a look at the htmlpublisher plugin: http://wiki.hudson-ci.org/display/HUDSON/HTML+Publisher+Plugin
This allows you to specify multiple html directories and index files to be made accessible from the job or build page.
Have a look at the xUnit Plugin. I found the info in this thread. It has more information for using Hudson to build cpp projects.