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

Add helpers to extract values from a context #25

Merged
merged 1 commit into from
Sep 27, 2022

Conversation

morgen-peschke
Copy link
Owner

Abstract

Makes it easier to work with effects in tests, inspired by Scalatest's EitherValues, ScalaFutures, etc and munit's error reporting.

Why include this?

The driving use case is IO#unsafeRunSync in existing tests, and there isn't sufficient resources to rewrite it completely in IO and use something like munit-cats-effect

As a bonus, this provides a nice way to get rid of Option#get calls.

@morgen-peschke morgen-peschke merged commit 237f447 into integration Sep 27, 2022
@morgen-peschke morgen-peschke deleted the value-of-test-helpers branch September 27, 2022 16:45
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.

1 participant