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

Generated test output size should be customizable #1235

Closed
denis-fokin opened this issue Oct 26, 2022 · 0 comments · Fixed by #1285
Closed

Generated test output size should be customizable #1235

denis-fokin opened this issue Oct 26, 2022 · 0 comments · Fixed by #1285
Assignees
Labels
comp-codegen Issue is related to code generator ctg-enhancement New feature, improvement or change request priority-top-focus Top priority chosen by dev team

Comments

@denis-fokin
Copy link
Collaborator

denis-fokin commented Oct 26, 2022

Description

Take a look at the next issue: #1225. We can face situations when test-generated output is too big. This leads to increase in memory use or even IDE hang. We should handle such scenarios safely and notify user about our actions.

Expected behavior

In case if a generated string with output tests exceeds 1MB we should stop test generation and provide the user with compliable and executable tests in a file less than 1MB. Additionally, we need to add a commentary in the generated file. Commentary says that the output file is shortened. The same information is supposed to be shown in the IDE log with ability for user to navigate to the settings section in order to increase the generated file size and tests number per a method under test (by default it is supposed to be 50 test methods).

Environment

See #1225

Potential alternatives

We have discussed potential alternatives and enchantments for this approach, namely a popup that will notify the user about the shortened content of the file, splitting the file in smaller pieces.

Context

See #1225

@denis-fokin denis-fokin added the ctg-enhancement New feature, improvement or change request label Oct 26, 2022
@denis-fokin denis-fokin moved this to Todo in UTBot Java Oct 26, 2022
@Vassiliy-Kudryashov Vassiliy-Kudryashov moved this from Todo to In Progress in UTBot Java Oct 27, 2022
@Vassiliy-Kudryashov Vassiliy-Kudryashov linked a pull request Nov 1, 2022 that will close this issue
4 tasks
Vassiliy-Kudryashov added a commit that referenced this issue Nov 2, 2022
Repository owner moved this from In Progress to Done in UTBot Java Nov 2, 2022
@alisevych alisevych added this to the 2022.12 Release milestone Nov 30, 2022
@alisevych alisevych added comp-codegen Issue is related to code generator priority-top-focus Top priority chosen by dev team labels Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-codegen Issue is related to code generator ctg-enhancement New feature, improvement or change request priority-top-focus Top priority chosen by dev team
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants