Forum Discussion

SLTech's avatar
SLTech
Copper Contributor
Nov 22, 2024

Is it possible to run a asp.net core site within testing?

Hi!

I'm trying to write tests for a small minimal API based on asp.net core.
I don't want to test over the internet, but start the app within the tests and call the endpoints on the running site.
Is this possible? And how?
Should I use TestServer for this?


I'm new to writing tests, so maybe it's an easy issue to code.

 

Thanks! :) 

No RepliesBe the first to reply

Resources