Skip to content

Commit

Permalink
C#: Add dotnet test that targets dll.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelnebel committed Jun 6, 2023
1 parent c1bd04e commit 0f010af
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion csharp/ql/integration-tests/posix-only/dotnet_test/test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
from create_database_utils import *
from diagnostics_test_utils import *

run_codeql_database_create(['dotnet test'], db=None, lang="csharp")
# 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', 'dotnet test myout/dotnet_test.dll'], test_db="test2-db", lang="csharp")
check_diagnostics(test_db="test2-db")

0 comments on commit 0f010af

Please sign in to comment.