(cli: string, workspaceFolder: string, location: string)
| 119 | } |
| 120 | } |
| 121 | export async function pathExists(cli: string, workspaceFolder: string, location: string) { |
| 122 | try { |
| 123 | await shellExec(`${cli} exec --workspace-folder ${workspaceFolder} test -e ${location}`); |
| 124 | return true; |
| 125 | } catch (err) { |
| 126 | return false; |
| 127 | } |
| 128 | } |
| 129 | export async function commandMarkerTests(cli: string, workspaceFolder: string, expected: { postCreate: boolean; postStart: boolean; postAttach: boolean }, message: string) { |
| 130 | const actual = { |
| 131 | postCreate: await pathExists(cli, workspaceFolder, '/tmp/postCreateCommand.testmarker'), |
no test coverage detected