Skip to content

Commit 0f010af

Browse files
committed
C#: Add dotnet test that targets dll.
1 parent c1bd04e commit 0f010af

File tree

1 file changed

+6
-1
lines changed
  • csharp/ql/integration-tests/posix-only/dotnet_test

1 file changed

+6
-1
lines changed
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
from create_database_utils import *
22
from diagnostics_test_utils import *
33

4-
run_codeql_database_create(['dotnet test'], db=None, lang="csharp")
4+
# Implicitly build and then run tests.
5+
run_codeql_database_create(['dotnet test'], test_db="test-db", lang="csharp")
56
check_diagnostics()
7+
8+
# Explicitly build and then run tests.
9+
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")
10+
check_diagnostics(test_db="test2-db")

0 commit comments

Comments
 (0)