ciselab / TestGenie

TestGenie - an IntelliJ plugin that natively integrates EvoSuite into the IDE. EvoSuite is an automated test suite generation tool using evolutionary algorithms. Used for research @ SERG, TU Delft.
MIT License
1 stars 0 forks source link

Telemetry Path Bugfix #156

Closed SergeyDatskiv closed 2 years ago

SergeyDatskiv commented 2 years ago

Description of changes made

  1. Replace the text field for the telemetry path with a text filed with a browse button.
  2. Delete the old default telemetry path settings.
  3. Ensure that telemetry path can not be touched until the telemetry checkbox is set to true.
  4. In case the telemetry path is empty, reset the telemetry path back to previous state.

Why is merge request needed

The merge is needed in order to address the possible exception that is thrown on Jegor's, arch btw, machine. This will now set the default path to be user.home. Furthermore, the person can now choose the path through the file chooser. This should take care of all errors.

Other notes

Closes #155

Please write if you have anything to add According to IntelliJ documentation the component responsible for path should have "filename completion", however this is not the case in this pull request. I suspect that this is because the feature is only allowing to select folders and not files, or because we do not provide a project variable. This is just a side note. Everything should be okay.

What is missing?

When the telemetry path is empty, the reset happens without informing the user that the reset occurred, i.e. no popup message is shown. This is done in order not to disturb the user in case the empty path was just a mistake. If needed the message can be added.