Skip to content

Commit

Permalink
Record diagnostics in binlog extraction test
Browse files Browse the repository at this point in the history
  • Loading branch information
tamasvajk committed Jun 28, 2024
1 parent 1e2d1ef commit c892744
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"markdownMessage": "C# analysis with build-mode 'none' completed.",
"severity": "unknown",
"source": {
"extractorName": "csharp",
"id": "csharp/autobuilder/buildless/complete",
"name": "C# analysis with build-mode 'none' completed"
},
"visibility": {
"cliSummaryTable": true,
"statusPage": false,
"telemetry": true
}
}
{
"markdownMessage": "C# was extracted with build-mode set to 'none'. This means that all C# source in the working directory will be scanned, with build tools, such as Nuget and Dotnet CLIs, only contributing information about external dependencies.",
"severity": "note",
"source": {
"extractorName": "csharp",
"id": "csharp/autobuilder/buildless/mode-active",
"name": "C# was extracted with build-mode set to 'none'"
},
"visibility": {
"cliSummaryTable": true,
"statusPage": true,
"telemetry": true
}
}
2 changes: 2 additions & 0 deletions csharp/ql/integration-tests/all-platforms/binlog/test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import subprocess
from create_database_utils import *
from diagnostics_test_utils import *

subprocess.check_call(["dotnet", "build", "test.sln", "/bl:test.binlog"])
run_codeql_database_create([], lang="csharp", extra_args=["--build-mode=none", "-Obinlog=test.binlog"])
check_diagnostics()

0 comments on commit c892744

Please sign in to comment.