Visual Studio Code Coverage

Chris-1234 1 Reputation point
2021-02-22T21:04:23.593+00:00

I am using Visual Studio 2019 Enterprise Edition. My goal is to find a way to determine, during run-time, what lines have been touch/covered to create baseline testcases. I am trying to test older legacy code that is not well configured for Unit Testing. My idea is to generate stimulus(Test Cases) on the fly using a recursive algorithm and a random seed. I need to monitor the change in test coverage based on the newly generated stimulus. When a new stimulus generates an increase in coverage, I will log the stimulus and continue the process until 85% coverage has been obtained or all possibilities are exhausted.

Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
329 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Dylan Zhu-MSFT 6,406 Reputation points
    2021-02-23T04:12:40.457+00:00

    Hi Chris1234,

    Maybe this extension can help you: Fine Code Coverage.

    Best Regards, Dylan

    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our * *documentation* to enable e-mail notifications if you want to receive the related email notification for this thread.**

    0 comments No comments