-
Notifications
You must be signed in to change notification settings - Fork 46
Fix codegen to generate tests for nested classes into nested testclasses #560 #665
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
volivan239
merged 1 commit into
main
from
volivan239/improve_test_naming_for_nested_classes
Aug 11, 2022
Merged
Fix codegen to generate tests for nested classes into nested testclasses #560 #665
volivan239
merged 1 commit into
main
from
volivan239/improve_test_naming_for_nested_classes
Aug 11, 2022
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
07b3120
to
dec5883
Compare
In this PR some project tests were restructured. For example, |
dec5883
to
94833f3
Compare
ArsenHD
reviewed
Aug 9, 2022
...framework/src/main/kotlin/org/utbot/framework/codegen/model/constructor/context/CgContext.kt
Outdated
Show resolved
Hide resolved
...framework/src/main/kotlin/org/utbot/framework/codegen/model/constructor/context/CgContext.kt
Outdated
Show resolved
Hide resolved
...src/main/kotlin/org/utbot/framework/codegen/model/constructor/tree/CgTestClassConstructor.kt
Outdated
Show resolved
Hide resolved
utbot-framework/src/main/kotlin/org/utbot/framework/codegen/model/constructor/TestClassInfo.kt
Outdated
Show resolved
Hide resolved
...src/main/kotlin/org/utbot/framework/codegen/model/constructor/tree/CgTestClassConstructor.kt
Outdated
Show resolved
Hide resolved
...k/src/main/kotlin/org/utbot/framework/codegen/model/constructor/tree/TestFrameworkManager.kt
Outdated
Show resolved
Hide resolved
...k/src/main/kotlin/org/utbot/framework/codegen/model/constructor/tree/TestFrameworkManager.kt
Outdated
Show resolved
Hide resolved
...ramework/src/test/kotlin/org/utbot/examples/annotations/lombok/EnumWithoutAnnotationsTest.kt
Outdated
Show resolved
Hide resolved
utbot-framework/src/test/kotlin/org/utbot/examples/UtValueTestCaseChecker.kt
Outdated
Show resolved
Hide resolved
utbot-framework/src/main/kotlin/org/utbot/framework/codegen/model/CodeGenerator.kt
Outdated
Show resolved
Hide resolved
7 tasks
ArsenHD
approved these changes
Aug 11, 2022
830dcc5
to
eec6d59
Compare
eec6d59
to
8191af5
Compare
amandelpie
approved these changes
Aug 11, 2022
denis-fokin
pushed a commit
that referenced
this pull request
Aug 18, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Changed codegen so that now structure of generated test classes corresponds to structure of classes in src code, i.e. tests generated for methods from inner/nested classes are now put to inner/nested classes in testfile.
Fixes #560
Type of Change
Please delete options that are not relevant.
How Has This Been Tested?
Automated Testing
Added tests for ClassWithStaticAndInnerClasses, more tests to be added
Manual Scenario
Run on example described in #560 -- tests for
CaseFormat.StringConverter
are generated in nested classChecklist (remove irrelevant options):
This is the author self-check list