Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running tests fails on Windows #402

Closed
dragoi75 opened this issue Oct 25, 2024 · 0 comments · Fixed by #406
Closed

Running tests fails on Windows #402

dragoi75 opened this issue Oct 25, 2024 · 0 comments · Fixed by #406
Assignees
Labels
bug Something isn't working Urgent Urgant PR

Comments

@dragoi75
Copy link

Describe the bug
Running the generated tests on Windows fails due to single quotes in the compile command.

To Reproduce
Steps to reproduce the behavior (on Windows):

  1. Run TestSpark via Run IDE for UI Test
  2. Generate tests with TestSpark for an arbitrary Java class
  3. Hit Run All
  4. The IDE gives the following error in the console output:
INFO org.jetbrains.research.testspark.core.test.java.JavaTestCompiler - Exit code: '1'; Execution message: 'The filename, directory name, or volume label syntax is incorrect.

Additional context

  • The issue is due to the single quotes introduced in Add quotes around compilers' filepaths #389. My fix for Windows was to replace "'$javac'", with "\"$javac\"", (double quotes instead of single quotes). I don't know if the replacement breaks the in macOS / Linux.
  • I only tested it for Java, not for Kotlin, but I expect the same behavior.
@Vladislav0Art Vladislav0Art added the bug Something isn't working label Oct 27, 2024
@Vladislav0Art Vladislav0Art self-assigned this Oct 27, 2024
@Vladislav0Art Vladislav0Art added the Urgent Urgant PR label Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Urgent Urgant PR
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants