This repository has been archived on 2022-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
DevOpsOpenHack/apis/poi/buildtest.sh
2022-11-03 16:41:13 -04:00

19 lines
572 B
Bash

#!/bin/bash
# clean the output of the previous build
dotnet clean
# restore dependencies
dotnet restore
# build the project
dotnet build --no-restore
# run selective test - unit tests
dotnet test --no-build --filter "FullyQualifiedName~UnitTest" --logger "trx;LogFileName=UnitTestResults.trx" --results-directory ./TestResults
# run selective test - integrations tests
dotnet test --no-build --filter "FullyQualifiedName~IntegrationTests" --logger "trx;LogFileName=IntegrationTestResults.trx" --results-directory ./TestResults
# run all tests
dotnet test --no-build