wopee-mcp 1.30.0 → 1.30.1
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.
|
@@ -7,7 +7,7 @@ export const wopeeFetchRecentExecutions = {
|
|
|
7
7
|
name: ToolName.WOPEE_FETCH_RECENT_EXECUTIONS,
|
|
8
8
|
config: {
|
|
9
9
|
title: "Fetch recent test executions",
|
|
10
|
-
description: "Fetch the most recent test case executions for the current project (up to 20, newest first). Use this to check the status of recently dispatched tests without needing to remember specific suite UUIDs. Returns execution status (
|
|
10
|
+
description: "Fetch the most recent test case executions for the current project (up to 20, newest first). Use this to check the status of recently dispatched tests without needing to remember specific suite UUIDs. Returns each run's verdict (PASSED, FAILED, or INCOMPLETE — the run never established a result, e.g. an infrastructure error, and says nothing about the application) or, for a run with no verdict yet, its execution status (IN_QUEUE, IN_PROGRESS, FINISHED, FAILED, STOPPED), plus agent reports. Takes no input; uses WOPEE_PROJECT_UUID from environment. Prefer this tool when the user asks 'what's the status?' or 'how did the tests go?' and you don't have the specific suite UUID handy.",
|
|
11
11
|
},
|
|
12
12
|
handler: async () => {
|
|
13
13
|
try {
|
|
@@ -48,15 +48,13 @@ export const wopeeFetchRecentExecutions = {
|
|
|
48
48
|
"",
|
|
49
49
|
];
|
|
50
50
|
for (const tc of executions) {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}
|
|
55
|
-
else {
|
|
56
|
-
status = tc.executionStatus;
|
|
57
|
-
}
|
|
51
|
+
// The verdict first (backlog#4453). A run whose agent threw is FAILED underneath but
|
|
52
|
+
// INCOMPLETE on top, and reporting it as FAILED tells the user their app is broken.
|
|
53
|
+
const status = tc.agentReportStatus ?? tc.executionStatus;
|
|
58
54
|
lines.push(`- ${tc.userStoryId}:${tc.testCaseId} [${tc.analysisIdentifier}] → ${status} (${tc.updatedAt})`);
|
|
59
|
-
|
|
55
|
+
// Any report, not only a FINISHED run's: an incomplete run's report is what names the
|
|
56
|
+
// infrastructure error behind it.
|
|
57
|
+
if (tc.agentReport) {
|
|
60
58
|
const shortReport = tc.agentReport.slice(0, 200);
|
|
61
59
|
lines.push(` Report: ${shortReport}${tc.agentReport.length > 200 ? "..." : ""}`);
|
|
62
60
|
}
|
package/package.json
CHANGED