'Code coverage for people (manual) tests?
Are there any code coverage tools for manual testing? For example, if I write 30 new lines of code, compile, then run, is there any way to quickly verify that all 30 lines were run?
Also, later, after I've checked the code into an official build, is there any way that I can verify that the test department hit on all 30 lines of code when they conducted their independent testing?
I know that there are a lot of tools for verifying that test departments test all requirements, but I haven't found a tool that verifies that testers test all lines of code.
I'm most interested in .NET / C# tools.
Solution 1:[1]
Getting 100% coverage is probably overkill -- and there are some cases where even when all lines are covered, the tool may not show it. That being said, you should check out the code coverage tools in Visual Studio Team System or any of a number of external coverage tools, such as nCover. Team System allows you to define testing-related checkin policies that may allow you to do what you want with regard to making sure that checked in code has been tested.
Solution 2:[2]
Yes, check out AutomatedQA's tools. They can do code coverage with manual testing and they have tools for automating the manual tests which also can be coupled with code coverage.
Solution 3:[3]
Here's a more detailed answer rather than just a link:
To do this for an IIS Express application:
Instrument the dlls you want to see coverage for. So in your bin directory run this
vsintr /coverage yourapp.dll
I haven't figured out how to make it utilize wildcards unfortunately.
Launch the app
vsperfcmd /start:coverage /output:run.coverage
- launch your app
- If IIS Express app:
- Get the name of the site from
C:\Users\<your user>\Documents\IISExpress\config\applicationhost.config
- Get the name of the site from
run your manual tests, then to finish
vsperfcmd /shutdown
from related question https://stackoverflow.com/a/23791306/57883
Solution 4:[4]
I have achieved using dotnet-coverage tool where am able to capture all coverage % during manual or automation tests
Prerequisite: dotnet needs to be installed. To install the latest release version of the dotnet-coverage NuGet package, use the dotnet tool install command: dotnet tool install --global dotnet-coverage
dotnet tool install -g dotnet-reportgenerator-globaltool
Navigate to “\ Execute below line from project location . this will collect data based on project and pdb function in .coverage file
dotnet-coverage collect dotnet run Launch the application in localhost :5000
execute some scenarios After some actions or you can run any automation scripts then click ctrl+C to close the run – output.coverage will get created
After executing the scripts output.coverage is getting generated so we need to merge this output.coverage to .xml with below function
dotnet-coverage merge -o output.xml -f xml output.coverage
From output.xml using report generator crate html report
ReportGenerator -reports:C:\Analytics_Application\analyticscoredev\Temenos.Insight\Temenos.InsightWeb\output.xml -targetdir:C:\SampleAppPlus\CoverageReports\html -sourcedirs:C:\SampleAppPlus
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | tvanfosson |
| Solution 2 | Jason Cohen |
| Solution 3 | Community |
| Solution 4 | Suparna |
