Skip to content

Ability to create and run tests at once #156 #670

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

Conversation

Vassiliy-Kudryashov
Copy link
Member

Description

  • We create run configuration (type = PATTERN) that runs with coverage all generated tests at once
  • Option button replaces standard OK button in the dialog, user can choose what to do
  • In case we cannot generate any test for some class in batch mode we won't show tons of "Failed to generate..." message dialogs.
  • Useful run{TARGET, runnable} API was moved to IntelliJApiHelper that replaced small existing AndroidApiHelper
  • New field named "runGeneratedTestsWithCoverage" was introduced for both Settings and GeneratetestsModel to persist user's choice

Fixes #156

Type of Change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Manual Scenario

Choose some example project, open generation dialog. Now it's possible to choose "Generate & Run" option and then call it.
As a result there should appear new (temporary) Run Configuration for the generated test scope, it starts automatically with coverage (IDEA built-in feature)

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
  • The change contains enough commentaries, particularly in hard-to-understand areas
  • No new warnings

@Vassiliy-Kudryashov Vassiliy-Kudryashov linked an issue Aug 4, 2022 that may be closed by this pull request
@Vassiliy-Kudryashov
Copy link
Member Author

I've added fallback in case 'Code Coverage for Java' plugin is not enabled

@Vassiliy-Kudryashov Vassiliy-Kudryashov enabled auto-merge (squash) August 5, 2022 12:42
@Vassiliy-Kudryashov Vassiliy-Kudryashov merged commit 093508a into main Aug 5, 2022
@Vassiliy-Kudryashov Vassiliy-Kudryashov deleted the Vassiliy-Kudryashov/156-ability-to-create-and-run-tests-at-once branch August 5, 2022 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Ability to create and run tests at once
2 participants