Testing against a ‘dotnet run’ website


I’m looking to run some tests against a website within a CI pipeline. I’ve opted for BackstopJS as the testing tool but I need something to run the tests against.

The code base I’m working with is a .Net core site and I want to run the tests against either a branch or pull request result.

Just to give an idea; if we were running this locally in development we’d run ‘dotnet run’ to start the website running, and then in a separate process run ‘backstop test’ to call the website and run tests.

I can approach it by setting up an IIS instance somewhere and doing a deploy, then running tests against that, but I’m trying to keep this all within the pipeline itself for ease of setup.

Not sure if what I’m looking for is possible here, but any pointers would be great.

Thank you