You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/CodeQLToolkit.Features.Test/Commands/TestCommandFeature.cs
+32-9Lines changed: 32 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -51,15 +51,17 @@ public void Register(Command parentCommand)
51
51
varworkDirectoryOption=newOption<string>("--work-dir",()=>Path.GetTempPath(),"Where to place intermediate execution output files."){IsRequired=true};
52
52
varlanguageOption=newOption<string>("--language",$"The language to run tests for."){IsRequired=true}.FromAmong(SupportedLangauges.Select(x =>x.ToOptionString()).ToArray());
53
53
varrunnerOSOption=newOption<string>("--runner-os",$"Label for the operating system running these tests."){IsRequired=true};
54
-
varcliVersionOption=newOption<string>("--cli-version",$"The version of the cli running the tests."){IsRequired=true};
55
-
varstdLibIdentOption=newOption<string>("--stdlib-ident",$"A string identifying the standard library used."){IsRequired=true};
54
+
//var cliVersionOption = new Option<string>("--cli-version", $"The version of the cli running the tests.") { IsRequired = true };
55
+
//var stdLibIdentOption = new Option<string>("--stdlib-ident", $"A string identifying the standard library used.") { IsRequired = true };
56
+
varextraCodeQLOptions=newOption<string>("--codeql-args",$"Extra arguments to pass to CodeQL."){IsRequired=false};
56
57
57
58
unitTestsCommand.Add(numThreadsOption);
58
59
unitTestsCommand.Add(workDirectoryOption);
59
60
unitTestsCommand.Add(languageOption);
60
61
unitTestsCommand.Add(runnerOSOption);
61
-
unitTestsCommand.Add(cliVersionOption);
62
-
unitTestsCommand.Add(stdLibIdentOption);
62
+
//unitTestsCommand.Add(cliVersionOption);
63
+
//unitTestsCommand.Add(stdLibIdentOption);
64
+
unitTestsCommand.Add(extraCodeQLOptions);
63
65
64
66
// a command validates the tests
65
67
varvalidateUnitTestsCommand=newCommand("validate-unit-tests","Validates a unit test run in a fashion suitable for use in CI/CD systems.");
@@ -89,8 +91,8 @@ public void Register(Command parentCommand)
WriteTemplateIfOverwriteOrNotExists("run-unit-tests",Path.Combine(Base,".github","workflows",$"run-codeql-unit-tests-{tmpLanguage}.yml"),$"Run CodeQL Unit Tests ({Language})",new
Copy file name to clipboardExpand all lines: src/CodeQLToolkit.Features.Test/Lifecycle/TestLifecycleFeature.cs
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -37,19 +37,20 @@ public void Register(Command parentCommand)
37
37
varnumThreadsOption=newOption<int>("--num-threads",()=>4,"Number of threads to use during test execution.");
38
38
varuseRunnerOption=newOption<string>("--use-runner",()=>"ubuntu-latest","The runner(s) to use. Should be a comma-seperated list of actions runners.");
39
39
varlanguageOption=newOption<string>("--language",$"The language to generate automation for."){IsRequired=true}.FromAmong(SupportedLangauges.Select(x =>x.ToOptionString()).ToArray());
40
+
varextraCodeQLOptions=newOption<string>("--codeql-args",$"Extra arguments to pass to CodeQL."){IsRequired=false};
0 commit comments