Skip to content

Commit

Permalink
Fix testcases
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadow-Devil committed Dec 3, 2024
1 parent 2882d06 commit cdf7d9b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public void launchServer(DebugUtils.DebuggeeExecutionKind launchKind, Map<String
requestArgs.put(CONFIG_SOURCE, entryFilePath.toString());
requestArgs.put(CONFIG_DEBUGEE_HOST, host);
requestArgs.put(CONFIG_DEBUGEE_PORT, Integer.toString(port));
requestArgs.put(CONFIG_BAL_HOME, balHome);
requestArgs.put(CONFIG_BAL_HOME, balHome.toAbsolutePath().toString());
if (launchKind == DebugUtils.DebuggeeExecutionKind.TEST) {
requestArgs.put(CONFIG_IS_TEST_CMD, true);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ private ProcessBuilder createProcessBuilder() {
* Injects jacoco agent args into the debug server VM environment.
*/
private void configureJacocoAgentArgs(Map<String, String> envProperties) {
Path jacocoAgentPath = balHome.resolve("bre").resolve("lib").resolve("jacocoagent.jar");
Path destinationFile = Path.of(System.getProperty("user.dir")).resolve("build").resolve("jacoco")
.resolve("debugger-core-test.exec");
Path jacocoAgentPath = balHome.resolve("bre/lib/jacocoagent.jar");
Path destinationFile = Path.of(System.getProperty("user.dir"))
.resolve("build/jacoco/debugger-core-test.exec");
String agentArgs = String.format(JACOCO_AGENT_ARGS, jacocoAgentPath, destinationFile);

String javaOpts = "";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ public abstract class BaseTestCase {

@BeforeSuite(alwaysRun = true)
public void initialize() throws BallerinaTestException, IOException {
Path projectResourcePath = Path.of("src", "test", "resources", "project-based-tests").toAbsolutePath();
Path singleFileResourcePath = Path.of("src", "test", "resources", "single-file-tests").toAbsolutePath();
Path projectResourcePath = Path.of("src/test/resources/project-based-tests").toAbsolutePath();
Path singleFileResourcePath = Path.of("src/test/resources/single-file-tests").toAbsolutePath();
DebugTestRunner.initialize(projectResourcePath, singleFileResourcePath);
}

Expand Down

0 comments on commit cdf7d9b

Please sign in to comment.