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

Issue #835: Making sure vscode cleans up the running test #849

Closed
wants to merge 1 commit into from

Conversation

calvin1864
Copy link

If a build fails and the user selects to Abort the running tests, the cleanup method is never called and the isRunning boolean is stranded as true.

This forces cleanup to occur if the user abandons their test run to fix build issues

… the build fails and the user abandons the build
@jdneo
Copy link
Member

jdneo commented Oct 24, 2019

Hi @calvin1864,

Thank you for providing this PR. This remind me that I need to do more refactoring work about the Scheduler.

The background is that previously, the Test Runner will launch a Java process by itself to run the tests. While recently I'm doing the refactoring work to migrate the launch task to Java Debugger. What the Test Runner does is just pass a launch configuration to the Java Debugger.

In #850, I removed the setting java.test.forceBuildBeforeLaunchTest and its related handling logic, because the users can use the same setting in debugger instead(java.debug.settings.forceBuildBeforeLaunch).

So the potential bug we mentioned here should disappear because the codes are actually removed.

But anyway, I still want to thank you for finding this out! I'll keep an eye on this issue to see if there are other cases to cause the bug.

BTW, if you are interested, Please feel free to have a try with the latest build. You can pull the latest bits from the master branch.

@calvin1864
Copy link
Author

Thanks. I saw your PR and update.

I'll close this without merging and test your change (at least for the issue I'm aware of). I'm looking forward to it!

@calvin1864 calvin1864 closed this Oct 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants