DEV Community

Discussion on: C# Web API: How to call your endpoint through integration tests

Collapse
davidkroell profile image
David Kröll

Very insightful!

Did not know that there exists such a integration testing library already. I created my own - but it works quite the same.

Collapse
fakhrulhilal profile image
Fakhrulhilal Maktum

It’s called integration testing, not unit test anymore. The benefit of it, it simulates API call. The cons, not all code coverage tool can identify it. So we need to figure out our self or it will remain uncovered.

Collapse
willianantunes profile image
Willian Antunes Author

Hi David! Actually, I had to create my own as well. Basically, I needed many customizations, like creating a database to handle parallel testing for each method test. So I wrote down a bit of the detail regarding it in this Tic Tac Toe through API repository.

Collapse
davidkroell profile image
David Kröll

Oh, glad to hear... thought of much unnecessary work done upfront 👍