I understand that we can build our Dockerfile with a stage to execute dotnet test and run our unit tests during the docker build.
My question is regarding whether or not we would want those tests to run during local dev (e.g. with Visual Studio).
If we run (F5) a .NET Core app that is set up to build into a Docker image, and then use the VS tools for Docker to debug, etc., are we going to also be running our unit tests at that point EVERYTIME we run/debug locally?
What if I already use the test runner built-into Visual Studio (or even the Live Unit Testing feature) during dev/debug time? Am I still forced to run those same unit tests during the docker build that is triggered from the IDE's Run/F5 command if I define a stage in the Dockerfile for running tests?
If not, what is the recommended approach to running tests in Docker but only execute that stage during a CI build and not during a local dev build?