Skip to content

Commit 8c21260

Browse files
authored
Merge pull request #4767 from NativeScript/fatme/fix-debug-brk-with-test
fix: fix test command with `--debug-brk` option
2 parents 8722364 + 1c8af5f commit 8c21260

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/commands/test.ts

+8
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@ abstract class TestCommandBase {
1414
async execute(args: string[]): Promise<void> {
1515
let devices = [];
1616
if (this.$options.debugBrk) {
17+
await this.$devicesService.initialize({
18+
platform: this.platform,
19+
deviceId: this.$options.device,
20+
emulator: this.$options.emulator,
21+
skipInferPlatform: !this.platform,
22+
sdk: this.$options.sdk
23+
});
24+
1725
const selectedDeviceForDebug = await this.$devicesService.pickSingleDevice({
1826
onlyEmulators: this.$options.emulator,
1927
onlyDevices: this.$options.forDevice,

0 commit comments

Comments
 (0)