GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Settings UI revision · Issue #753 · UnitTestBot/UTBotJava

Settings UI revision #753

New issue
Copy link
New issue
Copy link
Closed
Closed
Settings UI revision#753
Copy link
Assignees
Vassiliy-KudryashovEgorkaKulikov
Labels
comp-uiImprovements of plugin UI appearence and functionalityImprovements of plugin UI appearence and functionalitystatus-verifiedBug fix is verifiedBug fix is verified
Milestone
2022.10 Release preparation

Description

@olganaumenko
olganaumenko
opened on Aug 22, 2022
Issue body actions

Settings UI revision

Description

  • Inconsistent labels in the IntelliJ IDEA plugin UI.
    Product name should be: UnitTestBot (everywhere).
    Some UI elements of UnitTestBot are incongruent with the IntelliJ IDEA UI.
    Some settings are duplicated in the Plugin settings window and Action settings window.

  • Some setting labels are unclear.

  • Redundant "Help" tooltips; each option has a tooltip.
    Let's make UnitTestBot UI consistent with the IntelliJ IDEA design guidelines regarding tooltips and context help. :)

=> Please revise the Settings UI in Cases 1-3 as following.

Case 1. Plugin settings window

Steps To Reproduce

IntelliJ IDEA → File → Settings... → Tools → UtBot

See the Screenshot_1.

Screenshot_1

Actual (OLD) and expected (NEW) behavior

  1. Plugin name — marked with red in the Screenshot_1.
    (OLD) UtBot
    (NEW) UnitTestBot

  2. (OLD) Mock strategy:
    No mocks
    Other packages: Mockito
    Other classes: Mockito

(NEW) //Remove this setting from Plugin settings. Leave it only in Action settings.

  1. (OLD) Language generation:
    Java
    Kotlin

(NEW) Generated test language:
Java
Kotlin

//Please add a tooltip:
You can generate test methods in Java or Kotlin regardless of your source code language.

  1. (OLD) Test with exceptions:
    Failing
    Passing

//Tooltip:
Test behavior when runtime exception occurs

(NEW) Tests with exceptions:
Fail
Pass
//Please remove the tooltip.

  1. (OLD) Hanging test timeout: milliseconds

(NEW) //Please add a tooltip:
Test generation may hang due to infinite loops or other code conditions. Set timeout to stop waiting for hanging process.

  1. (OLD) Force static mocking:
    Force static mocking
    Do not force static mocking

(NEW) Force mocking static methods: [checkbox]

//Please add a tooltip:
Overrides other mocking settings.

  1. (OLD) Class
    //java.util.Random
    //etc

(NEW) //Please make this field open only when "Force mock static methods:" is checked.
Classes to be forcedly mocked:
//java.util.Random
//etc

  1. Please check "Test generation method" setting UI update #863.

Case 2. Generate... dialog window

Steps To Reproduce

Open the existing Java project in IntelliJ IDEA.
Open the Java file.
In the Editor tool window right-click any line containing a method or a class → Generate...

See the Screenshot_2.

Screenshot_2

Actual (OLD) and expected (NEW) behavior

  1. (OLD) Generate… (right-click menu) → Create Tests with UTBot… → Generate tests with UTBot
    (NEW) Generate… (right-click menu) → Tests with UnitTestBot… → Generate Tests with UnitTestBot

Case 3. Action settings window

Steps To Reproduce

Open the existing Java project in IntelliJ IDEA.
Right-click the required package or a file in the Project tool window, scroll the menu down to the bottom and choose Create Tests with UTBot… (right-click menu) → Generate tests with UtBot

See the Screenshot_3 for item 1.

Screenshot_3

See the Screenshot_4 for items 2-10.

Screenshot_4

Actual (OLD) and expected (NEW) behavior

  1. (OLD) Create Tests with UTBot… (right-click menu) → Generate tests with UtBot
    (NEW) Generate Tests with UnitTestBot… (right-click menu) → Generate Tests with UnitTestBot

  2. (OLD) Code generation language:
    Java
    Kotlin
    //Tooltips:
    Generate unit tests in Java
    Generate unit tests in Kotlin

(NEW) Please remove this setting from the Action settings window.

  1. (OLD) Test framework:
    JUnit4
    JUnit5
    TestNG

//Tooltips:
Use JUnit4 as test framework
Use JUnit5 as test framework

(NEW) Testing framework:
JUnit4
JUnit5
TestNG

Please remove the tooltips.

  1. (OLD) Mock strategy:
    No mocks
    Other packages: Mockito
    Other classes: Mockito
    //Tooltips:
    Do not use mock frameworks at all
    Mock all classes outside the current package except system ones
    Mock all classes outside the class under test except system ones

(NEW) Mocking strategy:
Do not mock
Mock package environment
Mock class environment
//Please add the tooltip:
Mock everything around the target class or the whole package except the system classes. Otherwise mock nothing.

  1. (OLD) Mock static:
    No static mocking
    Mockito static mocking
    //Tooltips:
    Do not use additional settings to mock static fields
    Use static methods mocking

(NEW) Mock static methods: yes/no (checkbox)
Please remove the tooltips.

  1. (OLD) Timeout for class: sec
    //Tooltip:
    The execution timeout specifies time for symbolic and concrete analysis

(NEW) Test generation timeout per class: seconds
Please remove the tooltip (TBD).

  1. (OLD) Parametrized tests:
    Not parametrized
    Parametrized
    //Tooltips:
    Do not generate parametrized tests
    Generate parametrized tests

(NEW) Parameterized tests: yes/no (checkbox)
Please remove the tooltips.
Please move this setting up (after the "Testing framework:" setting).

  1. (OLD) Generate test methods for:

(NEW) Generate tests for:

Environment

Windows 10 Pro
UnitTestBot
IntelliJ IDEA 2022.1.3 (Ultimate Edition)

Additional context
Please check the expected settings sequence.

For Plugin settings window:

  • Generated test language:
  • Hanging test timeout:
  • Tests with exceptions:
  • Overflow detection:
  • Force mock static methods:
  • Classes to be forcedly mocked:
  • Test generation method:

For Action settings window:

  • Test source root:
  • Testing framework:
  • Parameterized tests:
  • Mocking strategy:
  • Mock static methods:
  • Test generation timeout per class:
  • Generate tests for:

Activity

  1. olganaumenko
    added
    comp-uiImprovements of plugin UI appearence and functionalityImprovements of plugin UI appearence and functionality
    on Aug 22, 2022
  2. korifey
    added this to UTBot Javaon Aug 22, 2022
  3. korifey
    moved this to Todo in UTBot Javaon Aug 22, 2022
  4. alisevych commented on Aug 24, 2022

    @alisevych
    alisevych
    on Aug 24, 2022
    Member
    More actions

    Suggestions - TBD

    1. Use Simple/Advanced mode switch of one dialog window. Hide advanced settings by default - not to frighten the user.
      So several settings from Settings -> Tools -> UTBot can be shown on Action settings window - when Advanced mode is on.

    2. Code analysis. Currently it's counter-intuitive that slider position more to the right results in more deep analysis.
      Is there a suitable UI element which will have fill according to the proportion?

  5. EgorkaKulikov
    self-assigned this
    on Sep 7, 2022
  6. alisevych
    added this to the Release preparation milestone on Sep 7, 2022
  7. alisevych
    added
    video presentation
    on Sep 12, 2022
  8. Vassiliy-Kudryashov
    self-assigned this
    on Sep 14, 2022
  9. Vassiliy-Kudryashov
    added 2 commits that reference this issue on Sep 14, 2022

    Settings UI revision #753

    f316cef

    Settings UI revision #753

    a329587
  10. Vassiliy-Kudryashov
    closed this as completedon Sep 16, 2022
  11. Repository owner moved this from Todo to Done in UTBot Javaon Sep 16, 2022
  12. tyuldashev
    added
    status-verifiedBug fix is verifiedBug fix is verified
    on Sep 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @EgorkaKulikov
    EgorkaKulikov
  • @Vassiliy-Kudryashov
    Vassiliy-Kudryashov

Labels

comp-uiImprovements of plugin UI appearence and functionalityImprovements of plugin UI appearence and functionalitystatus-verifiedBug fix is verifiedBug fix is verified

Type

No type

Projects

  • UTBot Java
    Status
    Done
    Show more project fields

Milestone

  • 2022.10 Release preparation

Relationships

None yet

Development

No branches or pull requests

Issue actions

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.