C#: Add MSTEST test project and check that the call to vstest doesn't get the UseSharedCompilation=false flag forwarded.

This commit is contained in:
Michael Nebel
2023-06-08 09:58:52 +02:00
parent 65e651506c
commit 2fece9d721
4 changed files with 40 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
from create_database_utils import *
from diagnostics_test_utils import *
# Implicitly build and then run tests.
run_codeql_database_create(['dotnet test'], test_db="test-db", lang="csharp")
check_diagnostics()
# Explicitly build and then run tests.
run_codeql_database_create(['dotnet clean', 'rm -rf test-db', 'dotnet build -o myout --os win', 'dotnet test myout/dotnet_test_mstest.exe'], test_db="test2-db", lang="csharp")
check_diagnostics(test_db="test2-db")