I am having a hard time trying to find sources of how can I run Integration Tests on my old Net Framework 4.6.1 MVC application. I tried a lot of guides I found, but none of them works for one reason or another.
My application is way to big to upgrade it to Net 6, which would make this testing much easier. I tried running OWIN TestServer, but it always results in 404 errors.
So I would like to know, how to approach integration testing on a old mvc? Am I following the right path searching for a solution with OWIN TestServer? Anything else I could try? Thought of Selenium too, but couldnt get it to start a fake server just to run the tests automatically, I needs a command to initialize my app on IIS, and we need the tests to run automatically through azure CI pipeline.
My app is very old so I tried removing Global.asax and using only the owin pipeline through Startup.cs, but it showed an error message "No HTTP resource was found that matches the request uri", tried many fixes for Route configuration and such, no success. Tried running OWIN TestServer with both global.asax and startup.cs on the solution but did not work, tried Selenium too but it does not start a fake server automatically, preferably in memory just like the most recent versions of TestServer for net core+.
Tried also following this: https://www.strathweb.com/2013/12/owin-memory-integration-testing/