Skip to content

@DisplayName("clinitMockExample: ") without description of the test #1734

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
tyuldashev opened this issue Jan 23, 2023 · 0 comments · Fixed by #1782
Closed

@DisplayName("clinitMockExample: ") without description of the test #1734

tyuldashev opened this issue Jan 23, 2023 · 0 comments · Fixed by #1782
Assignees
Labels
comp-summaries Something related to the method names, code comments and display names generation ctg-bug Issue is a bug

Comments

@tyuldashev
Copy link
Collaborator

Description

For some test methods @DisplayName contains only method under test and there is no description of what's is tested.

To Reproduce

Steps to reproduce the behavior:

  1. Open utbot project
  2. Open org.utbot.examples.mock.CommonMocksExample class
  3. Generate tests for class with default settings

Expected behavior

Generated tests have @DisplayName which contains both method name and description of the test itself.

Actual behavior
Declaration of one of the tests looks like this:

    @Test
    @DisplayName("clinitMockExample: ")
    public void testClinitMockExample() throws ClassNotFoundException, IllegalAccessException, NoSuchFieldException {
...

Note that there is nothing after colon

Visual proofs (screenshots, logs, images)

image

@tyuldashev tyuldashev added ctg-bug Issue is a bug comp-summaries Something related to the method names, code comments and display names generation labels Jan 23, 2023
@sofurihafe sofurihafe self-assigned this Feb 9, 2023
@sofurihafe sofurihafe linked a pull request Feb 10, 2023 that will close this issue
EgorkaKulikov pushed a commit that referenced this issue Feb 10, 2023
Fix empty display names, missing info in summaries, summary tests and add extra summary tests
@github-project-automation github-project-automation bot moved this from Todo to Done in UTBot Java Feb 10, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
comp-summaries Something related to the method names, code comments and display names generation ctg-bug Issue is a bug
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants