Skip to content

Generate parametrized test for methods without force mocking in Uber and sample tests #591 #596 #608

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

Conversation

sofurihafe
Copy link
Member

Description

Before this PR, we didn't generate any tests for a whole test class if there were force mocking and parametrized test generation mode in one of the methods.
Now, we just exclude methods with force mocking and parametrized mode, generating methods that were not affected by force mocking.

Additionally, there was a bug with parametrized test generation trying to use private inner class as a type for one of the parameters.

Fixes # (591, 596)

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Automated Testing

Run deepEqualsTest with enabled parametrized test generation. Verify that the generated test class is not empty (there are methods where force mocking didn't take place), instead of being empty after #573.

@EgorkaKulikov EgorkaKulikov merged commit f8e75b7 into main Jul 29, 2022
@EgorkaKulikov EgorkaKulikov deleted the andrey-t/parametrization-in-samples-and-uber-tests branch July 29, 2022 11:36
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
3 participants