i have 2 stages…build and test for building and testing .NET app. In build stage i store all my obj and bin files to artifacts storage so they can be downloaded in the test stage. In the test stage i have 2 jobs for running separate tests.
Since i have all obj and bin files already available i’m using
--no-build option with
dotnet test tool to make the job faster. Now what’s happening is that one of the jobs doesn’t run any tests. If i modify my CI script (basically comment out either one of the kobs) so it contains only 1 job everything works ok…for both jobs.
The problem occurs when both jobs run parallel. Everything also works if i restrict the runner to be running only 1 concurrent job. It also works if i call
dotnet restore prior
dotnet test…but this takes additional time.
The job that doesn’t run any tests also doesn’t report any error…it seems as if it doesn’t find any tests to be run.