Skip to content

Instantly share code, notes, and snippets.

@WolfgangOfner
Created September 12, 2021 20:14
Show Gist options
  • Save WolfgangOfner/70935c1427430d6eb178feb4529337b1 to your computer and use it in GitHub Desktop.
Save WolfgangOfner/70935c1427430d6eb178feb4529337b1 to your computer and use it in GitHub Desktop.
FROM build AS test
ARG BuildId
LABEL test=${BuildId}
RUN dotnet test --no-build -c Release --results-directory /testresults --logger "trx;LogFileName=test_results.trx" Tests/CustomerApi.Test/CustomerApi.Test.csproj
RUN dotnet test --no-build -c Release --results-directory /testresults --logger "trx;LogFileName=test_results2.trx" Tests/CustomerApi.Service.Test/CustomerApi.Service.Test.csproj
RUN dotnet test --no-build -c Release --results-directory /testresults --logger "trx;LogFileName=test_results3.trx" Tests/CustomerApi.Data.Test/CustomerApi.Data.Test.csproj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment