I have created a NUnit project with .net core 5.0 .
When I run it from Visual Studio, command line or local docker container everything is ok, but when I deploy it on dev environment using Jenkins and Kubernetes the result is:
Determining projects to restore...
All projects are up-to-date for restore.
Is there any way to run the tests? I report the docker file:
FROM mcr.microsoft.com/dotnet/runtime:5.0 AS base
WORKDIR /app
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
WORKDIR /src
COPY ["MYIntegrationTest.csproj", "."]
RUN dotnet restore "./MYIntegrationTest.csproj"
COPY . .
RUN dotnet build "MYIntegrationTest.csproj" -c Release -o /app/build
FROM build AS publish
RUN dotnet publish "MYIntegrationTest.csproj" -c Release -o /app/publish
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "MYIntegrationTest.dll"]
FROM build AS exec
ENTRYPOINT ["dotnet", "test"]
Thank you