MCPcopy Index your code
hub / github.com/coder/coder / onTestEnd

Method onTestEnd

site/e2e/reporter.ts:7–22  ·  view source on GitHub ↗
(test: TestCase, result: TestResult)

Source from the content-addressed store, hash-verified

5
6class CoderReporter implements Reporter {
7 async onTestEnd(test: TestCase, result: TestResult) {
8 if (test.expectedStatus === "skipped") {
9 return;
10 }
11
12 if (result.status === "passed") {
13 return;
14 }
15
16 const fsTestTitle = test.title.replaceAll(" ", "-");
17 const outputFile = `test-results/debug-pprof-goroutine-${fsTestTitle}.txt`;
18 await exportDebugPprof(outputFile);
19
20 console.info(`Data from pprof has been saved to ${outputFile}`);
21 console.info("==> Output");
22 }
23}
24
25const exportDebugPprof = async (outputFile: string) => {

Callers

nothing calls this directly

Calls 2

exportDebugPprofFunction · 0.85
infoMethod · 0.80

Tested by

no test coverage detected