问题
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.
回答1:
Check Using Code Coverage with Manual Testing
回答2:
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.
回答3:
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.
回答4:
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
来源:https://stackoverflow.com/questions/723844/code-coverage-for-people-manual-tests