Skip to content

Improve test generation cancellation #1458

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 4 commits into from
Dec 6, 2022

Conversation

EgorkaKulikov
Copy link
Collaborator

Description

Support several behavior options if tests generation is cancelled by user

  • continue and do not react
  • finish gracefully and generate tests for already processed classes
  • cancel undoubtedly without any output

The default behavior is to finish gracefully as requested. It can be changed with a special option in UtSettings.

Fixes # (1234)

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Manual Scenario

  • create a package with several classes
  • run tests generation and cancel it in the middle of the process
  • verify that the behavior is equivalent to the declared one

@EgorkaKulikov EgorkaKulikov linked an issue Dec 6, 2022 that may be closed by this pull request
@Vassiliy-Kudryashov Vassiliy-Kudryashov enabled auto-merge (squash) December 6, 2022 15:22
@Vassiliy-Kudryashov Vassiliy-Kudryashov merged commit fca42cf into main Dec 6, 2022
@Vassiliy-Kudryashov Vassiliy-Kudryashov deleted the egor/easy_cancellation_correction branch December 6, 2022 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test generation results are eliminated after cancel
2 participants