Skip to content

Commit 574c073

Browse files
author
Étienne Lévesque
committed
Navigate to current project before executing tests
1 parent 36b4937 commit 574c073

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/commands/runTestFromCodeLens.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { window } from "vscode";
22

33
type RunArgs = {
4+
projectDir: string,
45
filePath: string,
56
describe: string | null,
67
testName?: string,
@@ -13,7 +14,8 @@ export default function runFromCodeLens(args: RunArgs): void {
1314

1415
elixirLsTerminal.show()
1516
elixirLsTerminal.sendText('clear')
16-
elixirLsTerminal.sendText(buildTestCommand(args));
17+
elixirLsTerminal.sendText(`cd ${args.projectDir}`)
18+
elixirLsTerminal.sendText(buildTestCommand(args))
1719
}
1820

1921
function buildTestCommand(args: RunArgs): string {

0 commit comments

Comments
 (0)