GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Duplicate Summaries with Tags in Rendered view · Issue #985 · UnitTestBot/UTBotJava

Duplicate Summaries with Tags in Rendered view #985

New issue
Copy link
New issue
Copy link
Closed
#1015
Closed
Duplicate Summaries with Tags in Rendered view#985
#1015
Copy link
Assignees
onewhl
Labels
comp-summariesSomething related to the method names, code comments and display names generationSomething related to the method names, code comments and display names generationctg-bugIssue is a bugIssue is a bug

Description

@alisevych
alisevych
opened on Sep 21, 2022
Issue body actions

Description

Summaries are duplicated when rendering mode is on.
Also annotations and method name are duplicated above the Java doc.

To Reproduce

  1. Run the 'UTBotJava' project in IntelliJ Idea 2022.1.4
  2. Open utbot-sample/src/test/java/org/utbot/examples/algorithms/ArraysQuickSortTest.java
  3. Use one of the latest builds of plugin to generate tests
  4. Open the generated test
  5. Find tests in SYMBOLIC EXECUTION ENGINE: ERROR SUITE
  6. Render Java docs (Ctrl+Alt+Q)

Expected behavior

Java docs should be rendered correctly - without duplications.

Actual behavior

Tagged information is duplicated.
Annotations and method name are duplicated above the Java doc.

Visual proofs (screenshots, logs, images)

Test in rendered view:

image

Test in text mode:

/**
     * @utbot.classUnderTest {@link ArraysQuickSort}
     * @utbot.methodUnderTest {@link ArraysQuickSort#sort(int[], int, int, int[], int, int)}
     * @utbot.executesCondition {@code (right - left < 286): True},
     * {@code (null): False}
     * @utbot.invokes {@link ArraysQuickSort#sort(int[], int, int, boolean)}
     * @utbot.throwsException {@link ArrayIndexOutOfBoundsException} in: internalSort(a, left, right, true);
     */
    @Test
    @DisplayName("sort: internalSort(a, left, right, true) : True -> ThrowArrayIndexOutOfBoundsException")
    public void testSort_ThrowArrayIndexOutOfBoundsException() {
        int[] a = {1, 1};

        /* This test fails because method [org.utbot.examples.algorithms.ArraysQuickSort.sort] produces [java.lang.ArrayIndexOutOfBoundsException] */
        ArraysQuickSort.sort(a, -208, 71, null, -255, -255);
    }

Environment

Windows 10 Pro
IntelliJ IDEA 2022.1.4
JDK 11

Activity

  1. alisevych
    added
    ctg-bugIssue is a bugIssue is a bug
    comp-summariesSomething related to the method names, code comments and display names generationSomething related to the method names, code comments and display names generation
    on Sep 21, 2022
  2. alisevych
    assigned
    onewhl
    on Sep 21, 2022
  3. korifey
    added this to UTBot Javaon Sep 21, 2022
  4. korifey
    moved this to Todo in UTBot Javaon Sep 21, 2022
  5. alisevych commented on Sep 21, 2022

    @alisevych
    alisevych
    on Sep 21, 2022
    MemberAuthor
    More actions

    @amandelpie Just FYI

    Reacted by Amandel Pie
  6. onewhl
    added a commit that references this issue on Sep 27, 2022

    Avoid summary duplication #985

    8d0cc3f
  7. alisevych commented on Sep 27, 2022

    @alisevych
    alisevych
    on Sep 27, 2022
    MemberAuthor
    More actions

    @onewhl There are additional details on the bug.

    Additional context

    If UTBotJava plugin is uninstalled, same Java docs in the generated test classes are rendered correctly - without duplicating.

    Reacted by Zarina Kurbatova
  8. onewhl
    added a commit that references this issue on Sep 28, 2022

    Avoid summary duplication #985 (#1015)

    4d4e39d
  9. onewhl
    closed this as completedin #1015on Sep 28, 2022
  10. Repository owner moved this from Todo to Done in UTBot Javaon Sep 28, 2022
  11. AbdullinAM
    added 2 commits that reference this issue on Oct 17, 2022

    Avoid summary duplication UnitTestBot#985 (UnitTestBot#1015)

    eed714f

    Avoid summary duplication UnitTestBot#985 (UnitTestBot#1015)

    80da28b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @onewhl
    onewhl

Labels

comp-summariesSomething related to the method names, code comments and display names generationSomething related to the method names, code comments and display names generationctg-bugIssue is a bugIssue is a bug

Type

No type

Projects

  • UTBot Java
    Status
    Done
    Show more project fields

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.