MCPcopy
hub / github.com/docmirror/dev-sidecar / executeTests

Function executeTests

packages/core/src/modules/plugin/free-eye/index.js:90–113  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88 }
89
90 const executeTests = async () => {
91 const currentConfig = config.get()
92 const setting = currentConfig.plugin.free_eye.setting || {}
93 try {
94 const { result, logs } = await captureLogs(() => runTests(setting))
95 const payload = {
96 finishedAt: new Date().toISOString(),
97 totalTests: result.totalTests,
98 completedTests: result.completedTests,
99 summaries: result.summaries,
100 results: result.results,
101 logs,
102 }
103 storeResult(payload)
104 return payload
105 } catch (err) {
106 const payload = {
107 finishedAt: new Date().toISOString(),
108 error: err.message,
109 }
110 storeResult(payload)
111 throw err
112 }
113 }
114
115 const api = {
116 async start () {

Callers 2

startFunction · 0.85
runFunction · 0.85

Calls 4

captureLogsFunction · 0.85
runTestsFunction · 0.85
storeResultFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected