Skip to content

Commit 481ae47

Browse files
committed
test/integration/goDebug.test.ts: include reasons for cwd test fail
The cwd tests were failing using dlv-dap. I investigated these failures and discovered they were failing for two reasons. 1. The user specified cwd was not being applied during launch 2. There were no Output events being sent for noDebug I updated the comments with a link to a PR to fix (1) and included the issue that makes (2) fail. Although fixing (2) would cause these tests to pass, there will probably be other work necessary to implement noDebug. Change-Id: Iefd3c02d26a99961513a5e386f7e784e88a869d4 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/295895 Trust: Suzy Mueller <[email protected]> Run-TryBot: Suzy Mueller <[email protected]> TryBot-Result: kokoro <[email protected]> Reviewed-by: Polina Sokolova <[email protected]>
1 parent d96dc45 commit 481ae47

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

test/integration/goDebug.test.ts

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ const testAll = (isDlvDap: boolean) => {
681681
suite('set current working directory', () => {
682682
test('should debug program with cwd set', async function () {
683683
if (isDlvDap && dlvDapSkipsEnabled) {
684-
this.skip(); // not working in dlv-dap.
684+
this.skip(); // Fixed in https://github.com/go-delve/delve/pull/2360
685685
}
686686

687687
const WD = path.join(DATA_ROOT, 'cwdTest');
@@ -703,11 +703,7 @@ const testAll = (isDlvDap: boolean) => {
703703
await assertLocalVariableValue('strdat', '"Hello, World!"');
704704
});
705705

706-
test('should debug program without cwd set', async function () {
707-
if (isDlvDap && dlvDapSkipsEnabled) {
708-
this.skip(); // not working in dlv-dap.
709-
}
710-
706+
test('should debug program without cwd set', async () => {
711707
const WD = path.join(DATA_ROOT, 'cwdTest');
712708
const PROGRAM = path.join(WD, 'cwdTest');
713709
const FILE = path.join(PROGRAM, 'main.go');
@@ -728,7 +724,7 @@ const testAll = (isDlvDap: boolean) => {
728724

729725
test('should debug file program with cwd set', async function () {
730726
if (isDlvDap && dlvDapSkipsEnabled) {
731-
this.skip(); // not working in dlv-dap.
727+
this.skip(); // Fixed in https://github.com/go-delve/delve/pull/2360
732728
}
733729

734730
const WD = path.join(DATA_ROOT, 'cwdTest');
@@ -750,11 +746,7 @@ const testAll = (isDlvDap: boolean) => {
750746
await assertLocalVariableValue('strdat', '"Hello, World!"');
751747
});
752748

753-
test('should debug file program without cwd set', async function () {
754-
if (isDlvDap && dlvDapSkipsEnabled) {
755-
this.skip(); // not working in dlv-dap.
756-
}
757-
749+
test('should debug file program without cwd set', async () => {
758750
const WD = path.join(DATA_ROOT, 'cwdTest');
759751
const PROGRAM = path.join(WD, 'cwdTest', 'main.go');
760752
const FILE = PROGRAM;
@@ -776,7 +768,7 @@ const testAll = (isDlvDap: boolean) => {
776768

777769
test('should run program with cwd set (noDebug)', async function () {
778770
if (isDlvDap && dlvDapSkipsEnabled) {
779-
this.skip(); // not working in dlv-dap.
771+
this.skip(); // OutputEvents not implemented
780772
}
781773

782774
const WD = path.join(DATA_ROOT, 'cwdTest');
@@ -802,7 +794,7 @@ const testAll = (isDlvDap: boolean) => {
802794

803795
test('should run program without cwd set (noDebug)', async function () {
804796
if (isDlvDap && dlvDapSkipsEnabled) {
805-
this.skip(); // not working in dlv-dap.
797+
this.skip(); // OutputEvents not implemented
806798
}
807799

808800
const WD = path.join(DATA_ROOT, 'cwdTest');
@@ -827,7 +819,7 @@ const testAll = (isDlvDap: boolean) => {
827819

828820
test('should run file program with cwd set (noDebug)', async function () {
829821
if (isDlvDap && dlvDapSkipsEnabled) {
830-
this.skip(); // not working in dlv-dap.
822+
this.skip(); // OutputEvents not implemented
831823
}
832824

833825
const WD = path.join(DATA_ROOT, 'cwdTest');
@@ -853,7 +845,7 @@ const testAll = (isDlvDap: boolean) => {
853845

854846
test('should run file program without cwd set (noDebug)', async function () {
855847
if (isDlvDap && dlvDapSkipsEnabled) {
856-
this.skip(); // not working in dlv-dap.
848+
this.skip(); // OutputEvents not implemented
857849
}
858850

859851
const WD = path.join(DATA_ROOT, 'cwdTest');

0 commit comments

Comments
 (0)