Single code coverage file for multiple test cases in MTM - code-coverage

I have been assigned to configure code coverage in MTM. I made all the settings and I was able to get it successful.
But one of our requirement says that we need to have single code coverage file for suite / multiple test case execution.
I tried executing multiple test cases by selecting with control key, after executing the test case I'm getting code coverage file for each test case.
For Example: 2 .coverage file for 2 test cases.
Is there any way to have single .coverage file for multiple test cases execution?

Related

Include tests from child suites when exporting test plans in TFS

When Exporting Test plan , i get plenty of Test Suites with 0 Test cases .
Though Every one of those Test Suites have multiple Child Test Suites with Multiple Test cases each .
How am i able to include the Test cases from the Child Test Suite in the Exported Report ?
It works well in my side, the test case is located under corresponding test suite.
When you do the export through right click the test plan, please make sure you have selected selected suite+children and check the test cases with step option.
Update:
Simply select the test plan you want to export, and right click the test plan, select Export.

Including NUnit TestFixture Name in TFS Test Results

I have a TFS build definition setup to run the task "Visual Studio Test" using the Nunit3 Test Adapter. This runs successfully and publishes test results. However, neither the TestFixture name or the Test's Fully Qualified Name are available in the test reuslts. This makes it difficult to determine what exactly what test failed without using lengthy test names.
Is there a way to include the Test Fixture names in the published test results from the build?
Please refer to the Tests summary tab of your build. It shows the detail information of test results of your Nunit3 tests.
You could use the Filter to find out those Failed or Succeeded tests.
You could also click the link in the picture below to check detail data for this test run.

Can Coded UI tests and MTM be used to create a test suite that will automatically play all test cases?

When creating a test suite in selenium ide it is possible to let all test cases in a test suite run in a continuous manner and see results when finished. I'm looking into creating test suites in Microsoft test manager and possibly automating with the code with cuit, my question is, is it possible to run the tests one after another with no manual interaction, as from what I've seen so far, it seems you have to manually verify the test results in each step for MTM tests and manually verify the pass or fail status at the end of the test?
You can create a test case and tie an automated test case (Selenium/CUIT) to it in Visual Studio. This flips a flag in the test case work item to "automated", and allows you to automatically execute those test cases on test agents.
https://msdn.microsoft.com/en-us/library/dd380741.aspx

With dotCover run one unit test and see code coverage highlighting

I am using dotCover 2.2 with VS 2010 Pro and NUnit 2.6.2 12296.
From dotCover Unit Tests Sessions I can select an individual test, right click and get the option to
"Cover Unit Test with dotCover" which appears to run just the one test, yet does not change the highlighting for the tests not run. I am expecting the code coverage highlighting to be cleared then display only the code coverage highlighting in green for the single test.
While I am able to get dotCover to highlight the code covered by all of the unit test, I would like to run just one unit test and see only highlighted that code which is covered by that unit test.
Is this possible? If so, how?
You need to create a new test session to cover the test with.
You can do this by right clicking the test you want to individually cover and click 'Create New Session' from the drop down. Then when you run your code coverage, it will only create a coverage report from the single test in your new test session.
DotCover stores the coverage results from an entire test session and uses it to display the code highlighting. When you were running the individual test in the existing test session, you were only updating the coverage results in the existing coverage report. By creating a new session, you create an empty coverage report.

Test Impact Analysis & Ms build execute only Impacted Test

I have a TFS build in VS2010. Following the build unit tests are executed.
In the Build summary it tells me that "1 test run(s) completed - 100% average pass rate" but below this it states "No tests were impacted".
I guess Impacted Tests relate to functionality providing the ability to only run tests that were impacted by code checked in?
Or is there a way that i can run only tests which where impacted based on result of Test Impact Analysis.
I have Set "Analyze Test Impact" to True but still no result coming and its executing all test cases in test projects.
The following thing worked for me.
Microsoft.TeamFoundation.TestImpact
http://scrumdod.blogspot.in/2011/03/tfs-2010-build-only-run-impacted-tests.html

Resources