Repository navigation
Expand file tree
/
Copy pathvitest.reverse-tools.config.ts
More file actions
73 lines (71 loc) · 3.29 KB
/
Copy pathvitest.reverse-tools.config.ts
File metadata and controls
73 lines (71 loc) · 3.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import { defineConfig } from "vitest/config";
const REVERSE_TOOL_MODULES = [
"src/application/reverse/ReverseEngineeringService.ts",
"src/application/binary/BinarySession.ts",
"src/cutter/CutterBridgeClient.ts",
"src/cutter/CutterBridgeService.ts",
"src/gdb/GdbSessionManager.ts",
"src/objdump/ObjdumpCommand.ts",
"src/process/ownedDebuggerSession.ts",
"src/process/ExecFileOutput.ts",
"src/server/registerReverseEngineeringTools.ts",
"src/server/externalMutationAdmission.ts",
"src/server/providerEnvironment.ts",
"src/rizin/RizinCommand.ts",
"src/rizin/RizinDebugSessionManager.ts",
];
export default defineConfig({
test: {
include: [
"tests/composition/analysis-sessions/binarySession.test.ts",
"tests/boundary/filesystem/directAnalysisSnapshotReplay.test.ts",
"tests/boundary/providers/GdbSessionManagers.test.ts",
"tests/boundary/providers/RizinDebugSessionManagers.test.ts",
"tests/boundary/providers/RizinInferiorTty.test.ts",
"tests/boundary/providers/GdbSessionManagerCoverage.test.ts",
"tests/boundary/providers/GdbCommandQueue.test.ts",
"tests/boundary/providers/GdbSessionReviewRegressions.test.ts",
"tests/boundary/providers/RizinDebugSessionReviewRegressions.test.ts",
"tests/boundary/providers/RizinDebugSessionCoverage.part1.test.ts",
"tests/boundary/providers/RizinDebugSessionCoverage.part2.test.ts",
"tests/boundary/providers/RizinDebugSessionCoverage.part3.test.ts",
"tests/boundary/providers/RizinDebugSessionCoverage.part4.test.ts",
"tests/boundary/providers/RizinDebugSessionCoverage.part5.test.ts",
"tests/boundary/providers/RizinTimeoutEvidence.test.ts",
"tests/boundary/providers/RizinCommandTimeout.test.ts",
"tests/boundary/providers/CutterBridgeClient.test.ts",
"tests/boundary/providers/CutterBridgeCapacity.test.ts",
"tests/boundary/providers/cutterBridgeProducer.test.ts",
"tests/boundary/providers/CutterBridgeNullIdentity.test.ts",
"tests/boundary/providers/CutterBridgeService.test.ts",
"tests/boundary/process/ownedDebuggerSession.test.ts",
"tests/boundary/mcp/gdbCancellationMcp.test.ts",
"tests/boundary/mcp/rizinDebuggerCancellationMcp.test.ts",
"tests/boundary/mcp/rizinPendingOutput.test.ts",
"tests/boundary/mcp/cutterMcp.test.ts",
"tests/boundary/mcp/cutterCancellationMcp.test.ts",
"tests/boundary/mcp/reverseEngineeringEnvironmentMcp.test.ts",
"tests/boundary/mcp/reverseEngineeringPartialMcp.test.ts",
"tests/boundary/mcp/workflowSnapshotReplayMcp.test.ts",
"tests/boundary/cli/gdbStartupCleanupCli.test.ts",
"tests/composition/reverseEngineering.test.ts",
"tests/composition/reverseEngineeringAdmission.test.ts",
"tests/composition/reverseEngineeringEdgeCases.test.ts",
"tests/boundary/cli/reverseEngineeringCommands.test.ts",
"tests/composition/reverseEngineeringCancellation.test.ts",
"src/process/ExecFileOutput.test.ts",
],
pool: "forks",
maxWorkers: 2,
retry: 0,
testTimeout: 60_000,
runner: "./tests/processOwnershipRunner.ts",
coverage: {
enabled: false,
provider: "v8",
reportsDirectory: "coverage/reverse-tools",
include: REVERSE_TOOL_MODULES,
reporter: ["text", "text-summary", "json"],
},
},
});