Skip to content

Fix error tests handling in reporting #1597

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 1 commit into from
Dec 27, 2022
Merged

Conversation

sofurihafe
Copy link
Member

@sofurihafe sofurihafe commented Dec 27, 2022

Description

This PR fixes error window popping up when not real but only error tests were generated as described in the issue.
The tests looks like the following:

public void testMethodWithException_errors() {
    // Couldn't generate some tests. List of errors:
    // 
    // 1 occurrences of:
    // Index 100 out of bounds for length 3
}

Now, in case of only error tests there is no error window.

Fixes # (1425)

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Regression and integration tests

Automated Testing

utbot-samples.

Manual Scenario

Code from the issue did not cause the error window popping up, so it was decided to cause it artificially by tweaking CgTestClassConstructor.

@EgorkaKulikov EgorkaKulikov merged commit 83f0c31 into main Dec 27, 2022
@EgorkaKulikov EgorkaKulikov deleted the andrey-t/error_window branch December 27, 2022 12:58
@alisevych alisevych added ctg-bug-fix PR is fixing a bug comp-ui Improvements of plugin UI appearence and functionality labels Jan 23, 2023
@alisevych alisevych added this to the 2023.03 Release milestone Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-ui Improvements of plugin UI appearence and functionality ctg-bug-fix PR is fixing a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Exception in Error message with saving test generation report when an empty test class is generated
3 participants