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

Introduce munit-cats-effect #4522

Merged
merged 3 commits into from
Nov 24, 2023

Conversation

shinyhappydan
Copy link
Contributor

Fixes #4513

dantb
dantb previously approved these changes Nov 22, 2023
Comment on lines 62 to 63
.intercept[Throwable]
.assert(e => e.getMessage.contains("not found") && e.getMessage.contains("resource2.txt"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a new change and I'm not sure about asserting on library errors anyway, but if we are gonna do that could do something like

Suggested change
.intercept[Throwable]
.assert(e => e.getMessage.contains("not found") && e.getMessage.contains("resource2.txt"))
.interceptMessage[IOException]("Resource resource2.txt not found")

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wrote it this way because the message changed slightly when I switched libraries and I wanted the assertion to be a bit looser (say that it wasn't found, say the name of the thing)

@shinyhappydan shinyhappydan merged commit 96174df into BlueBrain:master Nov 24, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Introduce Cats-Effect munit
3 participants