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

Introduce custom JavaDoc tags to structure test summaries #565

Closed
onewhl opened this issue Jul 21, 2022 · 0 comments · Fixed by #585
Closed

Introduce custom JavaDoc tags to structure test summaries #565

onewhl opened this issue Jul 21, 2022 · 0 comments · Fixed by #585
Assignees
Labels
comp-summaries Something related to the method names, code comments and display names generation

Comments

@onewhl
Copy link
Member

onewhl commented Jul 21, 2022

Description

Currently, summaries are hard to read because of formatting issues and a lot of details they contain.
We can introduce custom JavaDoc tags that would make summaries more structured and clear.

Expected behavior

Plugin supports custom JavaDoc tags. For example, @methodUnderTest, @classUnderTest, @expectedResult, @actualResult.

@onewhl onewhl added the comp-summaries Something related to the method names, code comments and display names generation label Jul 21, 2022
@onewhl onewhl self-assigned this Jul 21, 2022
@korifey korifey moved this to Todo in UTBot Java Jul 21, 2022
onewhl added a commit that referenced this issue Jul 27, 2022
onewhl added a commit that referenced this issue Aug 3, 2022
onewhl added a commit that referenced this issue Aug 3, 2022
onewhl added a commit that referenced this issue Aug 4, 2022
onewhl added a commit that referenced this issue Aug 4, 2022
onewhl added a commit that referenced this issue Aug 17, 2022
onewhl added a commit that referenced this issue Aug 17, 2022
onewhl added a commit that referenced this issue Aug 22, 2022
onewhl added a commit that referenced this issue Aug 22, 2022
onewhl added a commit that referenced this issue Aug 23, 2022
onewhl added a commit that referenced this issue Aug 23, 2022
onewhl added a commit that referenced this issue Aug 24, 2022
onewhl added a commit that referenced this issue Aug 24, 2022
amandelpie pushed a commit that referenced this issue Aug 24, 2022
* Introduce custom plugin's JavaDoc tags #565

* Render UtBot custom JavaDoc tags correctly #565

* Add an option to generate summaries using custom JavaDoc tags #565

* Fill value of utbot.iterates tag #565

* Collect info about Invoke, Iterate, and Return sections #565

* Review fixes

* Add unit tests for summaries with custom JavaDoc tags #565

* Fix after rebasing

* Add summary tests for MinStack #565

* Fix broken tests

* Add <pre> tag only in case when custom javadoc tags are not used

* Use a full exception name instead of simple name to build inline link correctly

* Minor refactoring

* Minor refactoring: avoid code duplication

* Add DocCustomTagStatement and CgCustomTagStatement

* Refactored code to avoid code duplication

* Fix tests: add full name for classes

* Add JUnit extension to control USE_CUSTOM_TAGS setting

* Move useCustomJavaDocTags to UtSettings, make useFuzzing true

* Remove unused import and fix broken tests

* Fix broken tests

* Add comments, remove unused method

* Review fixes: fixed formatting, removed redundant types

* Review fixes: fixed formatting, removed useless overriding methods

* Review fixes: extracted method, polished code

* fix after rebasing

* fix after rebasing

* review fixes

* fix rendering after updating to idea 2022.1. now we don't need to generate comment content with HTML tags, we need only replace custom tags' names with their messages to make it look nice
Repository owner moved this from Todo to Done in UTBot Java Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-summaries Something related to the method names, code comments and display names generation
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant