Skip to content

Add statics support in parametrized tests generation #612 #672 #671

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
Aug 5, 2022

Conversation

sofurihafe
Copy link
Member

@sofurihafe sofurihafe commented Aug 4, 2022

Description

This PR adds support for statics in parametrized test generation.
Now, executions are split and grouped not only by their result type, but also by mutated static fields.
We create separated test methods and corresponding data providers when we have executions with different intentions of changing\not changing static field.

Fixes # (612, 672)

Type of Change

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

How Has This Been Tested?

Automated Testing

Run utbot samples with enabled parametrized test generation.

Manual Scenario

Run StaticsSubstitutionTest with enabled parametrized test generation. Verify that generated file contains two separated test methods and their data providers.

@sofurihafe sofurihafe linked an issue Aug 4, 2022 that may be closed by this pull request
@sofurihafe sofurihafe force-pushed the andrey-t/statics-support branch from 67e6384 to 6b9a15e Compare August 5, 2022 07:41
@sofurihafe sofurihafe force-pushed the andrey-t/statics-support branch from 6b9a15e to 5a791cf Compare August 5, 2022 08:51
@sofurihafe sofurihafe changed the title Add statics support in parametrized tests generation Add statics support in parametrized tests generation #612 #672 Aug 5, 2022
@EgorkaKulikov EgorkaKulikov merged commit 1ca23e7 into main Aug 5, 2022
@EgorkaKulikov EgorkaKulikov deleted the andrey-t/statics-support branch August 5, 2022 14:19
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.

Parametrized test method expects expectedResult value in case of constructor test Issue with statics in parametrized test generation
2 participants