Skip to content

Commit

Permalink
Enable debugger terminal tests on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
NipunaRanasinghe committed Jan 9, 2025
1 parent 35de750 commit 6e347d9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import org.ballerinalang.debugger.test.utils.DebugUtils;
import org.ballerinalang.test.context.BallerinaTestException;
import org.testng.Assert;
import org.testng.SkipException;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
Expand All @@ -43,12 +42,6 @@ public void setup() {

@Test(description = "Debug launch test in integrated terminal for project based source")
public void testRunInIntegratedTerminal() throws BallerinaTestException {
// Skipping the test on Windows
// TODO: enable after fixing intermittent failures
if (System.getProperty("os.name").toLowerCase().contains("win")) {
throw new SkipException("Skipping test on Windows OS");
}

String integratedTerminal = "integrated";
debugTestRunner.setClientSupportsRunInTerminal(true);
didRunInIntegratedTerminal = debugTestRunner.initDebugSession(DebugUtils.DebuggeeExecutionKind.RUN,
Expand All @@ -58,12 +51,6 @@ public void testRunInIntegratedTerminal() throws BallerinaTestException {

@Test(description = "Debug launch test in external terminal for project based source")
public void testRunInExternalTerminal() throws BallerinaTestException {
// Skipping the test on Windows
// TODO: enable after fixing intermittent failures
if (System.getProperty("os.name").toLowerCase().contains("win")) {
throw new SkipException("Skipping test on Windows OS");
}

String externalTerminal = "external";
debugTestRunner.setClientSupportsRunInTerminal(true);
didRunInIntegratedTerminal = debugTestRunner.initDebugSession(DebugUtils.DebuggeeExecutionKind.RUN,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import org.ballerinalang.debugger.test.utils.DebugUtils;
import org.ballerinalang.test.context.BallerinaTestException;
import org.testng.Assert;
import org.testng.SkipException;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
Expand All @@ -31,6 +30,7 @@
* Test class to test the runInTerminal feature for single files.
*/
public class SingleFileRunInTerminalTest extends BaseTestCase {

DebugTestRunner debugTestRunner;
boolean didRunInIntegratedTerminal;

Expand All @@ -44,12 +44,6 @@ public void setup() {

@Test(description = "Debug launch test in integrated terminal for single file")
public void testRunInIntegratedTerminal() throws BallerinaTestException {
// Skipping the test on Windows
// TODO: enable after fixing intermittent failures
if (System.getProperty("os.name").toLowerCase().contains("win")) {
throw new SkipException("Skipping test on Windows OS");
}

String integratedTerminal = "integrated";
debugTestRunner.setClientSupportsRunInTerminal(true);
didRunInIntegratedTerminal = debugTestRunner.initDebugSession(DebugUtils.DebuggeeExecutionKind.RUN,
Expand All @@ -59,12 +53,6 @@ public void testRunInIntegratedTerminal() throws BallerinaTestException {

@Test(description = "Debug launch test in external terminal for single file")
public void testRunInExternalTerminal() throws BallerinaTestException {
// Skipping the test on Windows
// TODO: enable after fixing intermittent failures
if (System.getProperty("os.name").toLowerCase().contains("win")) {
throw new SkipException("Skipping test on Windows OS");
}

String externalTerminal = "external";
debugTestRunner.setClientSupportsRunInTerminal(true);
didRunInIntegratedTerminal = debugTestRunner.initDebugSession(DebugUtils.DebuggeeExecutionKind.RUN,
Expand Down

0 comments on commit 6e347d9

Please sign in to comment.