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

Testing of UI checklist 2.1 RC#165 #1055

Closed
39 of 40 tasks
alisevych opened this issue Oct 3, 2022 · 1 comment
Closed
39 of 40 tasks

Testing of UI checklist 2.1 RC#165 #1055

alisevych opened this issue Oct 3, 2022 · 1 comment
Assignees
Labels
ctg-qa Issue is related to QA process

Comments

@alisevych
Copy link
Member

alisevych commented Oct 3, 2022

UI plugin checklist

Install plugin
Build under test - https://github.com/UnitTestBot/UTBotJava/actions/runs/3172776185

Make the following checks for IntelliJ, Maven, Gradle projects with different JDK 8/11

Open dialog

  • Open the utbot-sample/src/main/java/org/utbot/examples/algorithms/ArraysQuickSort.java file
  • From code. Open context menu, select Generate..., select Create tests with UTBot... => Dialog is opened
  • Context menu item is disabled for non Java classes, for example resources, configuration files

Dialog. Members

  • From Project view. Right-click on a package with several classes, select Create tests with UTBot... => Dialog is opened. All classes from package are listed and selected
  • From Project view. Select several classes, right-click, select Create tests with UTBot... => Dialog is opened. Selected classes are listed and selected
  • From Project view. Right-click on one class, select Create tests with UTBot... => Dialog is opened. All methods of the class are listed and selected (except private)
  • Create a public class with 4 different methods: private, without access modifier, protected, public. Open UTBot test generation for the class => all methods except private are in list. - check for Kotlin/Java
  • Make the class package-private (remove "public") => check the same

Dialog. Settings

Verify tests are generated with all these options

  • Dialog. Test source root is defaulted (if test source root is set in project)
    reproducing UI. Default Test source root in Gradle project #786
  • Dialog. Test source root (if no test sources root set in project) => suggests to create a new one (red) - create => verify created
  • check in Gradle UTBot doesn't show test source from other modules for Gradle project #1060
  • check in IntelliJ
  • check in Maven (@alisevych )
  • Dialog. Test framework => is defaulted to JUnit5
  • Dialog. Test framework (for project with JDK 8) => JUnit4, JUnit5 only
  • Dialog. Test framework (for project with JDK 11) => JUnit4, JUnit5, TestNG (not existing in project dependencies must have red text "(will be installed)")
  • check in Gradle
  • check in IntelliJ
  • check in Maven (@alisevych)
  • Dialog. Mock strategy => 1) Do not mock, 2) Mock package environment, 3) Mock class environment
  • Dialog. Mock strategy "Do not mock" is selected => Mock static methods is unchecked and disabled
  • Dialog. Mock strategy - select 2) and 3) options => Mock static options: 1) 'Mock static methods' checked, 2) 'Mock static methods' unchecked.
  • Dialog. Mock strategy (for a project without Mockito in dependencies) => 2), 3) options have red text "(will be installed)"
  • check in Maven (@alisevych)
  • Dialog. Timeout for class => default to 60 sec, only natural numbers can be saved, up and down arrows work
    to correct field Settings revision, 2nd iteration #977
  • Dialog. Timeout for class => minimize, check on ArrayQuickSort or some other code with conditions and loops
    bug Test generation timeout is exceeded 15 sec - 1 min for every run #1028
  • Dialog. Parametrized test => 2 options: Not parametrized / Parametrized
  • Dialog. Parametrized test - select "Parametrized" => "No mocks" and "No static mocking" are chosen and both disabled
  • Dialog. Destination package. Check not present // change request:
    UI. IDEA plugin dialog. Hide UI possibility to change destination package #488

SARIF report

  • Dialog. Uncheck "Parametrized tests" , generate tests => SARIF report is generated into resources folder - in correct package
  • do this for a single class => check place, package, file
  • do this for several classes in different packages
  • Dialog. Check "Parametrized tests", generate tests => no SARIF report is generated
    Unnecessary error window appears when UTbot fails to generate test #980

File -> Settings... -> UTBot

@alisevych alisevych added the ctg-qa Issue is related to QA process label Oct 3, 2022
@korifey korifey moved this to Todo in UTBot Java Oct 3, 2022
@alisevych
Copy link
Member Author

new bug #1059 - Maven / IntelliJ projects - Test sources root folder

Repository owner moved this from Todo to Done in UTBot Java Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ctg-qa Issue is related to QA process
Projects
Archived in project
Development

No branches or pull requests

2 participants