Skip to content

'View generated test' cannot locate parametrized test #1876

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

Open
tyuldashev opened this issue Mar 1, 2023 · 0 comments
Open

'View generated test' cannot locate parametrized test #1876

tyuldashev opened this issue Mar 1, 2023 · 0 comments
Assignees
Labels
comp-sarif Issue is related to SARIF report or Problems tab ctg-bug Issue is a bug lang-java Issue is related to Java support

Comments

@tyuldashev
Copy link
Collaborator

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.

@tyuldashev tyuldashev added ctg-bug Issue is a bug comp-sarif Issue is related to SARIF report or Problems tab labels Mar 1, 2023
@alisevych alisevych added the lang-java Issue is related to Java support label Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-sarif Issue is related to SARIF report or Problems tab ctg-bug Issue is a bug lang-java Issue is related to Java support
Projects
Status: Todo
Development

No branches or pull requests

3 participants