Skip to content

Fixed improper verification of the mocha installation #1585

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

Merged
merged 1 commit into from
Dec 26, 2022

Conversation

rudolf101
Copy link
Member

Description

Now the installed mocha package is checked correctly, if there is a local mocha installation, the window with the installation suggestion does not appear.
Fixes #1582

Type of Change

Please delete options that are not relevant.

  • Minor bug fix (non-breaking small changes)

How Has This Been Tested?

Manually

Manual Scenario

  • If mocha is not installed on the system, the user will be prompted to download mocha
  • Otherwise, the plugin window will appear without a download suggestion

Checklist (remove irrelevant options):

This is the author self-check list

  • The change followed the style guidelines of the UTBot project
  • Self-review of the code is passed
  • No new warnings
  • All manual scenarios pass locally with my changes

@rudolf101 rudolf101 added ctg-bug Issue is a bug lang-javascript Issue is related to JavaScript support labels Dec 23, 2022
@rudolf101 rudolf101 self-assigned this Dec 23, 2022
bufferedReader.close()
if (checkForPackageText == "") {
val packages = bufferReader.readText()
bufferReader.close()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that correct that you close the reader for the input stream and do not close for the error stream (which is created in runCommand)?

@rudolf101 rudolf101 merged commit 651ecca into main Dec 26, 2022
@rudolf101 rudolf101 deleted the vladislav/js-mocha-installing-fix branch December 26, 2022 07:27
@alisevych alisevych added ctg-bug-fix PR is fixing a bug and removed ctg-bug Issue is a bug labels Jan 23, 2023
@alisevych alisevych added this to the 2023.03 Release milestone Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ctg-bug-fix PR is fixing a bug lang-javascript Issue is related to JavaScript support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improper verification of the installation of the mocha test framework
3 participants