sedum-cli 0.1.0-alpha.0 → 0.1.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/affected-selection-5YF7ZHKG.js +182 -0
- package/dist/{chunk-BEV24G7S.js → chunk-72CYPRWT.js} +4 -4
- package/dist/{chunk-OB6ZUJ6X.js → chunk-UACA6VAM.js} +25 -18
- package/dist/chunk-UVCFRFDV.js +136 -0
- package/dist/{chunk-TU5MIKGA.js → chunk-V4JF5CPE.js} +135 -18
- package/dist/{chunk-TZGSCV23.js → chunk-W2BEUHUB.js} +98 -10
- package/dist/cli.js +3 -3
- package/dist/{doctor-command-2PMOA32Y.js → doctor-command-EU5OJJ5P.js} +2 -2
- package/dist/index.d.ts +25 -3
- package/dist/index.js +3 -3
- package/dist/{init-command-54R2FQ2U.js → init-command-4RYOB737.js} +6 -4
- package/dist/{run-command-VAVFPCWG.js → run-command-SUPJIEY5.js} +58 -157
- package/package.json +4 -4
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import {
|
|
2
|
+
discoverRunTests
|
|
3
|
+
} from "./chunk-UVCFRFDV.js";
|
|
4
|
+
import {
|
|
5
|
+
loadProjectConfig
|
|
6
|
+
} from "./chunk-W2BEUHUB.js";
|
|
7
|
+
|
|
8
|
+
// src/affected-selection.ts
|
|
9
|
+
import { execFile } from "child_process";
|
|
10
|
+
import { readFile, realpath } from "fs/promises";
|
|
11
|
+
import path from "path";
|
|
12
|
+
import { promisify } from "util";
|
|
13
|
+
import { loadFlowFile, resolveFlowModules } from "@sedum-dev/core";
|
|
14
|
+
import {
|
|
15
|
+
TypeSafeAdapter
|
|
16
|
+
} from "@sedum-dev/provider-typesafe";
|
|
17
|
+
var exec = promisify(execFile);
|
|
18
|
+
var AffectedSelectionError = class extends Error {
|
|
19
|
+
};
|
|
20
|
+
async function readBranchDiff(cwd, base, signal) {
|
|
21
|
+
const git = async (...args) => (await exec("git", args, {
|
|
22
|
+
cwd,
|
|
23
|
+
maxBuffer: 2 * 1024 * 1024,
|
|
24
|
+
...signal ? { signal } : {}
|
|
25
|
+
})).stdout;
|
|
26
|
+
try {
|
|
27
|
+
const root = (await git("rev-parse", "--show-toplevel")).trim();
|
|
28
|
+
let reference = base;
|
|
29
|
+
if (!reference) {
|
|
30
|
+
for (const candidate of [
|
|
31
|
+
"refs/heads/main",
|
|
32
|
+
"refs/remotes/origin/main",
|
|
33
|
+
"refs/heads/master",
|
|
34
|
+
"refs/remotes/origin/master"
|
|
35
|
+
]) {
|
|
36
|
+
try {
|
|
37
|
+
await git(
|
|
38
|
+
"rev-parse",
|
|
39
|
+
"--verify",
|
|
40
|
+
"--end-of-options",
|
|
41
|
+
`${candidate}^{commit}`
|
|
42
|
+
);
|
|
43
|
+
reference = candidate;
|
|
44
|
+
break;
|
|
45
|
+
} catch {
|
|
46
|
+
signal?.throwIfAborted();
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
if (!reference)
|
|
51
|
+
throw new AffectedSelectionError(
|
|
52
|
+
"No main or master ref found. Fetch the base branch or pass --base <ref>."
|
|
53
|
+
);
|
|
54
|
+
const commit = (await git(
|
|
55
|
+
"rev-parse",
|
|
56
|
+
"--verify",
|
|
57
|
+
"--end-of-options",
|
|
58
|
+
`${reference}^{commit}`
|
|
59
|
+
)).trim();
|
|
60
|
+
const mergeBase = (await git("merge-base", commit, "HEAD")).trim();
|
|
61
|
+
if ((await git("ls-files", "--others", "--exclude-standard", "--", ":/")).length)
|
|
62
|
+
throw new AffectedSelectionError(
|
|
63
|
+
"Untracked files are not represented in git diff. Stage intended files or ignore unrelated files before using --affected."
|
|
64
|
+
);
|
|
65
|
+
const diff = await git(
|
|
66
|
+
"diff",
|
|
67
|
+
"--no-ext-diff",
|
|
68
|
+
"--no-textconv",
|
|
69
|
+
"--no-color",
|
|
70
|
+
"--no-renames",
|
|
71
|
+
"--no-relative",
|
|
72
|
+
"--ignore-submodules=none",
|
|
73
|
+
"--submodule=short",
|
|
74
|
+
mergeBase,
|
|
75
|
+
"--",
|
|
76
|
+
":/"
|
|
77
|
+
);
|
|
78
|
+
if (/^Binary files .* differ$/mu.test(diff) || /^[+ -]Subproject commit /mu.test(diff))
|
|
79
|
+
throw new AffectedSelectionError(
|
|
80
|
+
"Binary or submodule changes cannot be scored reliably. Run the full suite without --affected."
|
|
81
|
+
);
|
|
82
|
+
const changed = (await git(
|
|
83
|
+
"diff",
|
|
84
|
+
"--no-ext-diff",
|
|
85
|
+
"--no-textconv",
|
|
86
|
+
"--name-only",
|
|
87
|
+
"--no-renames",
|
|
88
|
+
"--no-relative",
|
|
89
|
+
"--ignore-submodules=none",
|
|
90
|
+
"-z",
|
|
91
|
+
mergeBase,
|
|
92
|
+
"--",
|
|
93
|
+
":/"
|
|
94
|
+
)).split("\0").filter(Boolean);
|
|
95
|
+
return { root, base: reference, mergeBase, diff, changed };
|
|
96
|
+
} catch (error) {
|
|
97
|
+
if (error instanceof AffectedSelectionError) throw error;
|
|
98
|
+
throw new AffectedSelectionError(
|
|
99
|
+
"Could not read a complete Git diff. Check the base ref and merge-base history (fetch deeper for shallow clones), or run without --affected."
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
async function selectAffectedTests(options) {
|
|
104
|
+
const config = await loadProjectConfig(options.cwd, process.env, {
|
|
105
|
+
...options.environment ? { environment: options.environment } : {}
|
|
106
|
+
});
|
|
107
|
+
const canonicalProjectRoot = await realpath(config.projectRoot);
|
|
108
|
+
const selection = await discoverRunTests(
|
|
109
|
+
config,
|
|
110
|
+
options.paths,
|
|
111
|
+
options.filters
|
|
112
|
+
);
|
|
113
|
+
if (selection.invalid.length || selection.problems.length || !selection.tests.length)
|
|
114
|
+
throw new AffectedSelectionError(
|
|
115
|
+
"Test discovery is empty or invalid. Run sedum validate and fix discovery before using --affected."
|
|
116
|
+
);
|
|
117
|
+
const branch = await readBranchDiff(
|
|
118
|
+
config.projectRoot,
|
|
119
|
+
options.base,
|
|
120
|
+
options.signal
|
|
121
|
+
);
|
|
122
|
+
const changed = new Set(
|
|
123
|
+
branch.changed.map((file) => path.resolve(branch.root, file))
|
|
124
|
+
);
|
|
125
|
+
for (const file of [...changed])
|
|
126
|
+
changed.add(await realpath(file).catch(() => file));
|
|
127
|
+
const tests = [];
|
|
128
|
+
const forced = [];
|
|
129
|
+
for (const test of selection.tests) {
|
|
130
|
+
const file = path.join(config.projectRoot, test.file);
|
|
131
|
+
const parsed = await loadFlowFile(file, {
|
|
132
|
+
repoRoot: config.projectRoot,
|
|
133
|
+
rejectSymlinks: true
|
|
134
|
+
});
|
|
135
|
+
const resolved = await resolveFlowModules(parsed, {
|
|
136
|
+
repoRoot: config.projectRoot
|
|
137
|
+
});
|
|
138
|
+
if (!resolved.value || resolved.diagnostics.some((item) => item.severity === "error"))
|
|
139
|
+
throw new AffectedSelectionError(
|
|
140
|
+
"A test or module is invalid. Run sedum validate before using --affected."
|
|
141
|
+
);
|
|
142
|
+
const files = [await realpath(file), ...resolved.moduleFiles];
|
|
143
|
+
forced.push(files.some((source) => changed.has(source)));
|
|
144
|
+
tests.push({
|
|
145
|
+
file: test.file,
|
|
146
|
+
source: await readFile(file, "utf8"),
|
|
147
|
+
modules: await Promise.all(
|
|
148
|
+
resolved.moduleFiles.map(async (module) => ({
|
|
149
|
+
file: path.relative(canonicalProjectRoot, module).split(path.sep).join("/"),
|
|
150
|
+
source: await readFile(module, "utf8")
|
|
151
|
+
}))
|
|
152
|
+
)
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
options.signal?.throwIfAborted();
|
|
156
|
+
const scores = branch.diff ? await (options.createProvider?.(config) ?? new TypeSafeAdapter({
|
|
157
|
+
...config.apiKey ? { apiKey: config.apiKey } : {},
|
|
158
|
+
baseURL: config.providerBaseUrl,
|
|
159
|
+
model: config.providerModel
|
|
160
|
+
})).scoreRelevance(
|
|
161
|
+
branch.diff,
|
|
162
|
+
tests,
|
|
163
|
+
options.signal ? { signal: options.signal } : void 0
|
|
164
|
+
) : { probabilities: tests.map(() => 0), calls: [] };
|
|
165
|
+
return {
|
|
166
|
+
base: branch.base,
|
|
167
|
+
mergeBase: branch.mergeBase,
|
|
168
|
+
threshold: options.threshold,
|
|
169
|
+
calls: scores.calls,
|
|
170
|
+
tests: tests.map((test, index) => ({
|
|
171
|
+
file: test.file,
|
|
172
|
+
probability: scores.probabilities[index],
|
|
173
|
+
selected: branch.diff !== "" && (forced[index] || scores.probabilities[index] >= options.threshold),
|
|
174
|
+
reason: forced[index] ? "test-or-module-changed" : branch.diff ? "model" : "no-diff"
|
|
175
|
+
}))
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
export {
|
|
179
|
+
AffectedSelectionError,
|
|
180
|
+
readBranchDiff,
|
|
181
|
+
selectAffectedTests
|
|
182
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ProjectConfigError
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-W2BEUHUB.js";
|
|
4
4
|
|
|
5
5
|
// src/diagnostics.ts
|
|
6
6
|
import { BrowserDriverError, ProviderError } from "@sedum-dev/core";
|
|
@@ -9,8 +9,8 @@ function setupDiagnostic(error) {
|
|
|
9
9
|
if (error instanceof ProviderError && error.code === "configuration")
|
|
10
10
|
return {
|
|
11
11
|
code: "missing_key",
|
|
12
|
-
message: "The
|
|
13
|
-
fix: "Set TYPESAFE_API_KEY
|
|
12
|
+
message: "The model provider is not configured.",
|
|
13
|
+
fix: "Set TYPESAFE_API_KEY for the configured endpoint, then rerun the command."
|
|
14
14
|
};
|
|
15
15
|
if (error instanceof BrowserDriverError && error.code === "browser-missing")
|
|
16
16
|
return {
|
|
@@ -113,7 +113,7 @@ function flowDiagnostic(result) {
|
|
|
113
113
|
return {
|
|
114
114
|
code: result.code,
|
|
115
115
|
message: "The model provider could not complete the run safely.",
|
|
116
|
-
fix: result.code === "provider_configuration" || result.code === "provider_authentication" ? "Check
|
|
116
|
+
fix: result.code === "provider_configuration" || result.code === "provider_authentication" ? "Check the provider configuration and API access, then rerun the test." : "Check provider availability and the test input, then rerun the test."
|
|
117
117
|
};
|
|
118
118
|
return {
|
|
119
119
|
code: "execution_error",
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
+
DEFAULT_PROVIDER_BASE_URL,
|
|
3
|
+
DEFAULT_PROVIDER_MODEL,
|
|
2
4
|
loadProjectConfig
|
|
3
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-W2BEUHUB.js";
|
|
4
6
|
|
|
5
7
|
// src/doctor-command.ts
|
|
6
8
|
import { lstat, mkdir, mkdtemp, rm, rmdir, writeFile } from "fs/promises";
|
|
@@ -31,9 +33,9 @@ function browserAvailable(kind) {
|
|
|
31
33
|
function keyPresent(config) {
|
|
32
34
|
return Boolean(config.apiKey?.trim());
|
|
33
35
|
}
|
|
34
|
-
async function networkReachable() {
|
|
36
|
+
async function networkReachable(baseURL) {
|
|
35
37
|
try {
|
|
36
|
-
await fetch(
|
|
38
|
+
await fetch(baseURL, {
|
|
37
39
|
method: "GET",
|
|
38
40
|
redirect: "manual",
|
|
39
41
|
signal: AbortSignal.timeout(5e3)
|
|
@@ -128,17 +130,19 @@ async function executeDoctorCommand(cwd, probes = {}) {
|
|
|
128
130
|
)
|
|
129
131
|
);
|
|
130
132
|
}
|
|
133
|
+
const providerBaseUrl = config?.providerBaseUrl ?? DEFAULT_PROVIDER_BASE_URL;
|
|
134
|
+
const providerModel = config?.providerModel ?? DEFAULT_PROVIDER_MODEL;
|
|
131
135
|
let network = false;
|
|
132
136
|
try {
|
|
133
|
-
network = await (probes.network ?? networkReachable)();
|
|
137
|
+
network = await (probes.network ?? networkReachable)(providerBaseUrl);
|
|
134
138
|
} catch {
|
|
135
139
|
network = false;
|
|
136
140
|
}
|
|
137
141
|
checks.push(
|
|
138
|
-
network ? pass("api_network", "
|
|
142
|
+
network ? pass("api_network", "Model provider API is reachable.") : fail(
|
|
139
143
|
"api_network",
|
|
140
|
-
"
|
|
141
|
-
|
|
144
|
+
"Model provider API could not be reached.",
|
|
145
|
+
`Check DNS, TLS, proxy, firewall, and access to ${providerBaseUrl}.`
|
|
142
146
|
)
|
|
143
147
|
);
|
|
144
148
|
const key = config && keyPresent(config) ? config.apiKey?.trim() : void 0;
|
|
@@ -147,10 +151,10 @@ async function executeDoctorCommand(cwd, probes = {}) {
|
|
|
147
151
|
"api_key",
|
|
148
152
|
"API key source could not be read.",
|
|
149
153
|
"Fix project configuration, then rerun doctor."
|
|
150
|
-
) : key ? pass("api_key", "
|
|
154
|
+
) : key ? pass("api_key", "Provider API key is present.") : fail(
|
|
151
155
|
"api_key",
|
|
152
|
-
"
|
|
153
|
-
"Set TYPESAFE_API_KEY
|
|
156
|
+
"Provider API key is missing.",
|
|
157
|
+
"Set TYPESAFE_API_KEY for the configured endpoint."
|
|
154
158
|
)
|
|
155
159
|
);
|
|
156
160
|
if (!config)
|
|
@@ -166,7 +170,7 @@ async function executeDoctorCommand(cwd, probes = {}) {
|
|
|
166
170
|
fail(
|
|
167
171
|
"api_auth",
|
|
168
172
|
"API authentication could not be checked without a key.",
|
|
169
|
-
"Set
|
|
173
|
+
"Set the provider API key, then rerun doctor."
|
|
170
174
|
)
|
|
171
175
|
);
|
|
172
176
|
else if (!network)
|
|
@@ -174,28 +178,31 @@ async function executeDoctorCommand(cwd, probes = {}) {
|
|
|
174
178
|
fail(
|
|
175
179
|
"api_auth",
|
|
176
180
|
"API authentication could not be checked without API access.",
|
|
177
|
-
"Restore
|
|
181
|
+
"Restore model provider API network access, then rerun doctor."
|
|
178
182
|
)
|
|
179
183
|
);
|
|
180
184
|
else {
|
|
181
185
|
let result;
|
|
182
186
|
try {
|
|
183
|
-
result = await (probes.auth ?? probeTypeSafeApiKey)(key
|
|
187
|
+
result = await (probes.auth ?? probeTypeSafeApiKey)(key, {
|
|
188
|
+
baseURL: providerBaseUrl,
|
|
189
|
+
model: providerModel
|
|
190
|
+
});
|
|
184
191
|
} catch {
|
|
185
192
|
result = "unavailable";
|
|
186
193
|
}
|
|
187
194
|
checks.push(
|
|
188
|
-
result === "accepted" ? pass("api_auth", "
|
|
195
|
+
result === "accepted" ? pass("api_auth", "Model provider API accepted the key.") : result === "rejected" ? fail(
|
|
189
196
|
"api_auth",
|
|
190
|
-
"
|
|
191
|
-
"Replace
|
|
197
|
+
"Model provider API rejected the key.",
|
|
198
|
+
"Replace the provider API key with a valid key and rerun doctor."
|
|
192
199
|
) : result === "unreachable" ? fail(
|
|
193
200
|
"api_auth",
|
|
194
|
-
"Authenticated
|
|
201
|
+
"Authenticated provider request could not reach the API.",
|
|
195
202
|
"Check the API connection and retry."
|
|
196
203
|
) : fail(
|
|
197
204
|
"api_auth",
|
|
198
|
-
"
|
|
205
|
+
"The model provider could not complete the authentication probe.",
|
|
199
206
|
"Check API availability and account access, then retry."
|
|
200
207
|
)
|
|
201
208
|
);
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import {
|
|
2
|
+
discoverConfiguredTests
|
|
3
|
+
} from "./chunk-W2BEUHUB.js";
|
|
4
|
+
|
|
5
|
+
// src/run-selection.ts
|
|
6
|
+
import { lstat, realpath } from "fs/promises";
|
|
7
|
+
import path from "path";
|
|
8
|
+
import { minimatch } from "minimatch";
|
|
9
|
+
import {
|
|
10
|
+
listTests,
|
|
11
|
+
loadFlowFile,
|
|
12
|
+
walkSuiteFiles
|
|
13
|
+
} from "@sedum-dev/core";
|
|
14
|
+
function contained(root, target) {
|
|
15
|
+
const relative = path.relative(root, target);
|
|
16
|
+
return relative === "" || relative !== ".." && !relative.startsWith(`..${path.sep}`) && !path.isAbsolute(relative);
|
|
17
|
+
}
|
|
18
|
+
function selectRunTests(tests, filters) {
|
|
19
|
+
const includes = filters.include ?? [];
|
|
20
|
+
const excludes = filters.exclude ?? [];
|
|
21
|
+
const labels = filters.labels ?? [];
|
|
22
|
+
const names = filters.names ?? [];
|
|
23
|
+
return tests.filter(
|
|
24
|
+
(test) => (includes.length === 0 || includes.some((glob) => minimatch(test.file, glob))) && !excludes.some((glob) => minimatch(test.file, glob)) && labels.every((label) => test.tags.includes(label)) && (names.length === 0 || names.some(
|
|
25
|
+
(name) => `${test.id}
|
|
26
|
+
${test.description ?? ""}`.toLowerCase().includes(name.toLowerCase())
|
|
27
|
+
))
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
async function discoverRunTests(config, paths, filters = {}) {
|
|
31
|
+
const problems = [];
|
|
32
|
+
const files = /* @__PURE__ */ new Set();
|
|
33
|
+
const root = await realpath(config.projectRoot);
|
|
34
|
+
if (paths.length === 0) {
|
|
35
|
+
for (const file of await discoverConfiguredTests(config)) {
|
|
36
|
+
const target = await realpath(file);
|
|
37
|
+
if (contained(root, target)) files.add(target);
|
|
38
|
+
else
|
|
39
|
+
problems.push({
|
|
40
|
+
file: "<outside-project>",
|
|
41
|
+
code: "outside_root",
|
|
42
|
+
message: "A configured test is outside the project root.",
|
|
43
|
+
fix: "Keep the test directory inside the project."
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
} else {
|
|
47
|
+
for (const requested of paths) {
|
|
48
|
+
const candidate = path.resolve(config.projectRoot, requested);
|
|
49
|
+
const namedInside = contained(config.projectRoot, candidate);
|
|
50
|
+
const file = namedInside ? path.relative(config.projectRoot, candidate).split(path.sep).join("/") : "<outside-project>";
|
|
51
|
+
if (!namedInside) {
|
|
52
|
+
problems.push({
|
|
53
|
+
file,
|
|
54
|
+
code: "outside_root",
|
|
55
|
+
message: "Path is outside the project root.",
|
|
56
|
+
fix: "Choose a path inside the project."
|
|
57
|
+
});
|
|
58
|
+
continue;
|
|
59
|
+
}
|
|
60
|
+
let info;
|
|
61
|
+
try {
|
|
62
|
+
info = await lstat(candidate);
|
|
63
|
+
} catch {
|
|
64
|
+
problems.push({
|
|
65
|
+
file,
|
|
66
|
+
code: "missing_path",
|
|
67
|
+
message: "Path does not exist.",
|
|
68
|
+
fix: "Check the path and rerun."
|
|
69
|
+
});
|
|
70
|
+
continue;
|
|
71
|
+
}
|
|
72
|
+
if (info.isSymbolicLink()) {
|
|
73
|
+
problems.push({
|
|
74
|
+
file,
|
|
75
|
+
code: "symlinked_path",
|
|
76
|
+
message: "Symlinked test paths are not supported.",
|
|
77
|
+
fix: "Name the regular file."
|
|
78
|
+
});
|
|
79
|
+
continue;
|
|
80
|
+
}
|
|
81
|
+
const target = await realpath(candidate).catch(() => candidate);
|
|
82
|
+
if (!contained(root, target)) {
|
|
83
|
+
problems.push({
|
|
84
|
+
file,
|
|
85
|
+
code: "outside_root",
|
|
86
|
+
message: "Path is outside the project root.",
|
|
87
|
+
fix: "Choose a path inside the project."
|
|
88
|
+
});
|
|
89
|
+
continue;
|
|
90
|
+
}
|
|
91
|
+
if (info.isDirectory()) {
|
|
92
|
+
for (const file2 of await walkSuiteFiles(
|
|
93
|
+
target,
|
|
94
|
+
[".test.yaml"],
|
|
95
|
+
(folder) => {
|
|
96
|
+
problems.push({
|
|
97
|
+
file: path.relative(root, folder),
|
|
98
|
+
code: "unreadable_directory",
|
|
99
|
+
message: "Directory could not be read.",
|
|
100
|
+
fix: "Check permissions."
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
))
|
|
104
|
+
files.add(file2);
|
|
105
|
+
} else if (info.isFile() && candidate.endsWith(".test.yaml"))
|
|
106
|
+
files.add(target);
|
|
107
|
+
else
|
|
108
|
+
problems.push({
|
|
109
|
+
file,
|
|
110
|
+
code: "unsupported_file",
|
|
111
|
+
message: "Expected a *.test.yaml file or directory.",
|
|
112
|
+
fix: "Choose a test path."
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
const parsed = [];
|
|
117
|
+
for (const file of [...files].sort()) {
|
|
118
|
+
parsed.push({
|
|
119
|
+
file,
|
|
120
|
+
result: await loadFlowFile(file, {
|
|
121
|
+
repoRoot: root,
|
|
122
|
+
rejectSymlinks: true
|
|
123
|
+
})
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
const listing = listTests(parsed, { repoRoot: root });
|
|
127
|
+
return {
|
|
128
|
+
tests: selectRunTests(listing.tests, filters),
|
|
129
|
+
invalid: listing.invalid,
|
|
130
|
+
problems
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export {
|
|
135
|
+
discoverRunTests
|
|
136
|
+
};
|