mirror of
https://github.com/morluto/rea.git
synced 2026-11-09 00:07:18 +00:00
test: strengthen and prune audited test coverage (#8573)
* test: strengthen and prune audited test coverage * test: require delivered DeepSeek skill instructions * test: keep schema fixture types private * test: verify Gemini receives skill instructions * test: bind Qwen skill evidence to its tool result * test: report NativeAOT verifier checks precisely * fix: verify Ghidra cleanup paths reliably * fix: verify Command Code skill activation * test: tighten cleanup and fixture checks * test: verify packet capture evidence is recorded * fix: report HTTP3 capture provenance accurately * test: preserve resource coverage through MCP * test: prune repeated assertions and retain cancellation identity * fix: validate client verifier fixture paths * test: skip Copilot verifier cases on Windows * test: keep verifier setup target relative
This commit is contained in:
1 parent
ce9095d727
commit
7bcefead69
167 files changed
+2396
-1012
No files matched your search
@@ -150,6 +150,7 @@ it("returns a typed output error for malformed Electron target output after abor
|
||||
|
||||
it("retains completed target facts when cancellation arrives before Evidence publication", async () => {
|
||||
const controller = new AbortController();
|
||||
const reason = { requested: "stop after listing targets" };
|
||||
const targets = electronTargetListSchema.parse({
|
||||
browser: inspection.browser,
|
||||
targets: [],
|
||||
@@ -159,7 +160,7 @@ it("retains completed target facts when cancellation arrives before Evidence pub
|
||||
const provider: ElectronObservationPort = {
|
||||
identity: () => identity,
|
||||
listTargets: async () => {
|
||||
controller.abort();
|
||||
controller.abort(reason);
|
||||
return ok(targets);
|
||||
},
|
||||
inspectPage: async () =>
|
||||
@@ -173,8 +174,22 @@ it("retains completed target facts when cancellation arrives before Evidence pub
|
||||
expect(result.ok).toBe(false);
|
||||
if (!result.ok) {
|
||||
expect(result.error).toBeInstanceOf(AnalysisCancelledError);
|
||||
expect(result.error.cause).toBe(reason);
|
||||
expect(parseEvidence(result.error.partialObservation)).toMatchObject({
|
||||
operation: "list_electron_targets",
|
||||
provider: identity,
|
||||
parameters: { cdp_endpoint: input.cdp_endpoint },
|
||||
confidence: "observed",
|
||||
authority: "external-service",
|
||||
environment: {
|
||||
id: `${inspection.browser.product}@${inspection.browser.revision}`,
|
||||
platform: "unknown",
|
||||
architecture: "unknown",
|
||||
isolation: "none",
|
||||
},
|
||||
limitations: expect.arrayContaining([
|
||||
"Browser host platform and architecture were not observed.",
|
||||
]),
|
||||
normalized_result: targets,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user