chevron-thin-right chevron-thin-left brand cancel-circle search youtube-icon google-plus-icon linkedin-icon facebook-icon twitter-icon toolbox download check linkedin phone twitter-old google-plus facebook profile-male chat calendar profile-male
Welcome to Typemock Community! Here you can ask and receive answers from other community members. If you liked or disliked an answer or thread: react with an up- or downvote.
0 votes
I am writing unit tests around HTTPClient methods using the async keyword. In the unit tests I use the .Result call to make the async methods run synchronously. The tests run fine but I am not seeing any test coverage green shields  or results in the coverage map.

I have closed the solution/deleted the test cache and rerun. Again - all the tests pass but I can't see coverage. Just a limit of trying to test an "async" method?
asked by meansala (2.1k points)

1 Answer

0 votes
Hi meansala,

Can you tell me which visual studio are you using and what version of typemock?

Cheers,

Daniel

Typemock Support.
answered by Daniel (1.3k points)
Hello,

I\\\'m also not seeing that code coverage for async methods is not displayed in visual studio and in the coverage report I generated. I also noticed that for async methods do not have the option to \\\"Run Impacted Tests\\\". The tests do run without issues.

Is there a way I can get coverage for async methods?

I\\\'m using Typemock 8.7.4.1 Complete Version, and Visual Studio Professional 2017
...