Last active
August 4, 2021 14:03
-
-
Save KangDroid/6d2c8eef8b4438e10627f41edcf0132a to your computer and use it in GitHub Desktop.
Run DotNet Test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Run Server with nohup | |
nohup /opt/mssql/bin/sqlservr --accept-eula & | |
# Sleep for 5 seconds.. | |
sleep 5 | |
# Setup default db | |
/opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P testPassword@ -Q "CREATE DATABASE [kdr-test]" | |
# Run[from working directory] | |
dotnet restore | |
cd MoneyManager | |
/root/.dotnet/tools/dotnet-ef database update | |
cd .. | |
dotnet test -p:CoverletOutputFormat=cobertura -p:CollectCoverage=true -p:Threshold=90 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment