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 #1285

Conversation

Vassiliy-Kudryashov
Copy link
Member

Description

Two new settings were added: maxTestFileSize=1000000 and maxTestsPerMethod=50
Initially the issue was introduced by #1225 and you can reproduce 'bad' behavior with local reverting ea14197 or with patching of {HOME_DIR}/.utbot/settings.properties
In case number of executions for some method exceeds maxTestsPerMethod comment would be added in generated code.
In case file size exceeds maxTestFileSize no new tests methods would be added to the file, there should be message in log + notification in UI + the comment near ///endregion line

Fixes #1235

Type of Change

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

How Has This Been Tested?

Manual Scenario

Setup some small limits in {HOME_DIR}/.utbot/settings.properties and check generation output + UI behavior

Checklist (remove irrelevant options):

  • The change followed the style guidelines of the UTBot project
  • Self-review of the code is passed
  • No new warnings
  • New tests have been added

@Vassiliy-Kudryashov Vassiliy-Kudryashov enabled auto-merge (squash) November 2, 2022 10:14
@Vassiliy-Kudryashov Vassiliy-Kudryashov merged commit 55c3a82 into main Nov 2, 2022
@Vassiliy-Kudryashov Vassiliy-Kudryashov deleted the Vassiliy-Kudryashov/1235-generated-test-output-size-should-be-customizable branch November 2, 2022 11:52
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.

Generated test output size should be customizable
2 participants