Skip to content

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

Closed
@amandelpie

Description

@amandelpie

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)

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions