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

Wrong logic of error messages in List<UtExecution>.checkMatchersWithDisplayNames #383

Closed
amandelpie opened this issue Jul 4, 2022 · 0 comments · Fixed by #572
Closed
Assignees
Labels
comp-summaries Something related to the method names, code comments and display names generation ctg-bug Issue is a bug

Comments

@amandelpie
Copy link
Collaborator

Description

List.checkMatchersWithDisplayNames and other checkers prints summaries if something goes wrong like here:

Assertions.assertTrue(notMatchedExecutions.isEmpty()) { "Not matched display names ${summaries(notMatchedExecutions)}" }

To Reproduce

Run the test in utbot-summary with the error test data

Expected behavior

You obtain correct and clear message what's exactly wrong and what part of summaries is missed

Actual behavior

It prints comments in all cases (not matched display names, not matched test names and not matched comments)

@amandelpie amandelpie self-assigned this Jul 4, 2022
@amandelpie amandelpie added ctg-bug Issue is a bug comp-summaries Something related to the method names, code comments and display names generation labels Jul 4, 2022
@amandelpie amandelpie moved this to Todo in UTBot Java Jul 4, 2022
amandelpie added a commit that referenced this issue Jul 25, 2022
…ratorTest #383 (#572)

* Handled the bad case with the empty paths

* Improved test messages in the generated meta matchers
Repository owner moved this from Todo to Done in UTBot Java Jul 25, 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 ctg-bug Issue is a bug
Projects
Archived in project
1 participant