Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable debugger terminal tests on windows
Browse files Browse the repository at this point in the history
NipunaRanasinghe committed Jan 9, 2025
1 parent 35de750 commit 6e347d9
Showing 2 changed files with 1 addition and 26 deletions.
Original file line number Diff line number Diff line change
@@ -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;
@@ -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,
@@ -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,
Original file line number Diff line number Diff line change
@@ -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;
@@ -31,6 +30,7 @@
* Test class to test the runInTerminal feature for single files.
*/
public class SingleFileRunInTerminalTest extends BaseTestCase {

DebugTestRunner debugTestRunner;
boolean didRunInIntegratedTerminal;

@@ -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,
@@ -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,

0 comments on commit 6e347d9

Please sign in to comment.