Skip to content

'View generated test' cannot locate parametrized test #1876

Open
@tyuldashev

Description

@tyuldashev

Description

In case of parametrized test errors displayed in Problems view cannot be traced to exact test which could reveal that problem.

To Reproduce

Steps to reproduce the behavior:

  1. Open UTBot Java project
  2. Generate parametrized JUnit 5 tests for org.utbot.examples.math.DivRemExamples#div method
  3. In 'Problems View' toolwindow click 'View generated test' for found problem

Expected behavior
Generated test file is opened, caret is at test method.

Actual behavior

Even though test is opened, caret is at beginning of the file, pointing to package directive.

Visual proofs (screenshots, logs, images)
image

Additional context

In a better world it should point to specific set of parameters inside method provider instead of just test method.

Metadata

Metadata

Assignees

Labels

comp-sarifIssue is related to SARIF report or Problems tabctg-bugIssue is a buglang-javaIssue is related to Java support

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions