Skip to content

Generate separated parametrized tests when we have different result types #652

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 3, 2022

Conversation

sofurihafe
Copy link
Member

Description

This PR improves parametrized test generation by generating separated tests in special cases that will be . There is a problem with different result types, in instance, if we have three classes with different fields in relation. It's impossible to choose one general execution. So, now in cases like this we generate separated parametrized tests.

Fixes # (510)

Type of Change

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

How Has This Been Tested?

Automated Testing

Run utbot samples with enabled parametrized test generation.

Manual Scenario

Run InstanceOfExampleTest with enabled parametrized test generation. Verify that three separated parametrized tests for different result types are generated.

@sofurihafe sofurihafe linked an issue Aug 3, 2022 that may be closed by this pull request
@sofurihafe sofurihafe marked this pull request as draft August 3, 2022 09:55
@sofurihafe sofurihafe force-pushed the andrey-t/generic-execution branch from 1ef7f68 to d2200d8 Compare August 3, 2022 09:57
@EgorkaKulikov EgorkaKulikov self-requested a review August 3, 2022 10:07
@sofurihafe sofurihafe force-pushed the andrey-t/generic-execution branch from 59ecf46 to aa70070 Compare August 3, 2022 13:11
@EgorkaKulikov EgorkaKulikov marked this pull request as ready for review August 3, 2022 13:56
@EgorkaKulikov EgorkaKulikov requested a review from Damtev August 3, 2022 13:56
@sofurihafe sofurihafe force-pushed the andrey-t/generic-execution branch from aa70070 to 7cab53e Compare August 3, 2022 15:52
@EgorkaKulikov EgorkaKulikov enabled auto-merge (squash) August 3, 2022 15:55
@EgorkaKulikov EgorkaKulikov requested review from Damtev and removed request for Damtev August 3, 2022 15:55
@sofurihafe sofurihafe force-pushed the andrey-t/generic-execution branch 2 times, most recently from 4f98571 to 22ea2f4 Compare August 3, 2022 18:59
@sofurihafe sofurihafe force-pushed the andrey-t/generic-execution branch from 22ea2f4 to 5b1ccc7 Compare August 3, 2022 19:01
@EgorkaKulikov EgorkaKulikov merged commit 5ac552b into main Aug 3, 2022
@EgorkaKulikov EgorkaKulikov deleted the andrey-t/generic-execution branch August 3, 2022 20:38
@sofurihafe sofurihafe linked an issue Aug 11, 2022 that may be closed by this pull request
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.

Casting problems in parametrized test generation Generated parametrized test tries to access non-present field
3 participants