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
--bundle-version <bundle-version> (REQUIRED) The bundle version to use. Example: `codeql-bundle-20221211`.
158
+
[default: codeql-bundle-20221211]
159
+
--base <base> The base path to find the query repository. [default:
160
+
C:\temp\p1]
161
+
--automation-type <actions> (REQUIRED) The base path to find the query repository. [default: actions]
162
+
-?, -h, --help Show help and usage information
137
163
```
138
164
165
+
139
166
**Initialize CodeQL CI/CD and Unit Testing For Actions**
140
167
141
168
This command will install a number of workflows into your repository which include the necessary workflows for using QLT in your automation environment as well as the workflows for running CodeQL unit tests for the specified language.
142
169
170
+
```
171
+
Usage:
172
+
qlt test init [options]
173
+
174
+
Options:
175
+
--overwrite-existing Overwrite exiting files (if they exist). [default: False]
176
+
--num-threads <num-threads> Number of threads to use during test execution. [default:
177
+
4]
178
+
--use-runner <use-runner> The runner(s) to use. Should be a comma-seperated list of
179
+
actions runners. [default: ubuntu-latest]
180
+
--language <c|cpp|csharp|go|java|javascript|python|ruby> The language to generate automation for.
181
+
(REQUIRED)
182
+
--codeql-args <codeql-args> Extra arguments to pass to CodeQL.
183
+
--base <base> The base path to find the query repository. [default:
184
+
C:\temp\p1]
185
+
--automation-type <actions> (REQUIRED) The base path to find the query repository. [default:
186
+
actions]
187
+
-?, -h, --help Show help and usage information
188
+
```
189
+
190
+
191
+
192
+
Example usage:
143
193
```
144
194
qlt test init --use-runner ubuntu-latest --num-threads 4 --language c --automation-type actions
145
195
```
146
196
147
197
148
198
**Validate the metadata in your queries**
149
199
200
+
```
201
+
Usage:
202
+
qlt validation run check-queries [options]
203
+
204
+
Options:
205
+
--language <c|cpp|csharp|go|java|javascript|python|ruby> The language to run tests for.
206
+
(REQUIRED)
207
+
--pretty-print (REQUIRED) Pretty prints error output in a pretty compact format.
208
+
[default: False]
209
+
--base <base> The base path to find the query repository. [default:
210
+
C:\temp\p1]
211
+
--automation-type <actions> (REQUIRED) The base path to find the query repository. [default:
212
+
actions]
213
+
-?, -h, --help Show help and usage information
214
+
```
215
+
216
+
217
+
Example Usage:
150
218
```
151
219
qlt validation run check-queries --pretty-print --language cpp
152
220
```
153
221
154
222
155
223
**Run your unit tests in parallel**
156
224
225
+
```
226
+
Usage:
227
+
qlt test run execute-unit-tests [options]
228
+
229
+
Options:
230
+
--num-threads <num-threads> (REQUIRED) The number of threads to use for runner. For best
231
+
performance, do not exceed the number of physical cores on
232
+
your system. [default: 4]
233
+
--work-dir <work-dir> (REQUIRED) Where to place intermediate execution output files.
0 commit comments