Skip to content

Commit 40e45d3

Browse files
committed
Add test for missing Java build system
1 parent 7dc5e7e commit 40e45d3

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
class Test {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"timestamp":1674235729,"source":{"id":"java/autobuilder/no-build-command","name":"No build command found","extractorName":"java"},"markdownMessage":"Could not find a Gradle, Maven or Ant top-level project to build. Please [TODO](supply a manual build command)","severity":"error","visibility":{"statusPage":true,"cliSummaryTable":true,"telemetry":true}}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import os
2+
from create_database_utils import *
3+
from diagnostics_test_utils import *
4+
5+
os.mkdir("diagnostics")
6+
run_codeql_database_create([], lang="java", runFunction = runUnsuccessfully, db = None, extra_env = {"CODEQL_EXTRACTOR_DIAGNOSTIC_DIR": "diagnostics"})
7+
8+
check_diagnostics(test_dir = ".", diagnostics_dir = "diagnostics")

0 commit comments

Comments
 (0)