-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
C#: Add dotnet test that targets dll.
- Loading branch information
1 parent
c1bd04e
commit 0f010af
Showing
1 changed file
with
6 additions
and
1 deletion.
There are no files selected for viewing
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
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") |