Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Make IDELogEntry comparing more flexible #999

Open
yurii-yu opened this issue Jan 30, 2025 · 0 comments
Open

Make IDELogEntry comparing more flexible #999

yurii-yu opened this issue Jan 30, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@yurii-yu
Copy link
Contributor

yurii-yu commented Jan 30, 2025

As a developer, I want the hasEntries() method so that

  1. I do not need to list the expected entries in the right order
  2. I do not need to offer the expected log entries as raw texts, instead, I can specify them as patterns.

For example

before

assertThat(context).log().hasEntries(IdeLogEntry.ofSuccess("Successfully installed java in version 17.0.10_7"),

IdeLogEntry.ofSuccess("Successfully installed mvn in version 3.9.6"));

after

//change the order of those expected log entries
assertThat(context).log().hasEntries(IdeLogEntry.ofSuccess("Successfully installed mvn in version 3.9.6"),

//assume that regex is supported here
IdeLogEntry.ofSuccess("Successfully installed java in version 17.[0-9._]+"));
@yurii-yu yurii-yu added the enhancement New feature or request label Jan 30, 2025
@github-project-automation github-project-automation bot moved this to 🆕 New in IDEasy board Jan 30, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant