I have a unit test (dotnet application), I run next command: "dotnet test mytest.csproj --no-build /p:CollectCoverage=true ..." in a docker container. Eventually I do not get tests' results. I use a flag --no-build to remove extra load on network when need to download nuget packages(it happens only in docker image).
Before test I create a docker image where I do build test's project. Then when I run tests inside container I get only a status: "Build success" instead of running tests. If delete a flag "--no-build" tests start. Or if do "dotnet build" before run tests, test also will be run even with flag --no-build.
I've noticed that if test run on .dll file "dotnet test mytest.dll --no-build /p:CollectCoverage=true ..." test run successfully, but here is another problem: no cobertura results. And an argument /p:CollectCoverage=true will be as invalid.
How can I fix this problem?
On the screen is not full Dockerfile, only with steps which necessary for dotnet
