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

Handle thrown exceptions #3

Open
1Jajen1 opened this issue Mar 4, 2019 · 1 comment
Open

Handle thrown exceptions #3

1Jajen1 opened this issue Mar 4, 2019 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested
Milestone

Comments

@1Jajen1
Copy link
Owner

1Jajen1 commented Mar 4, 2019

Right now exception handling in tests is left to the user writing the test and any exception thrown will not be caught. That is fine for most cases (when programming in a functional way and prefering total functions) but it may be a restriction that does not need to be there. Any ideas on how to approach this (if at all) are welcome :)

@1Jajen1 1Jajen1 added enhancement New feature or request help wanted Extra attention is needed question Further information is requested labels Mar 4, 2019
@1Jajen1
Copy link
Owner Author

1Jajen1 commented Mar 12, 2019

The plan for now is: Treat all non-io tests as pure (assert that they simply don't throw) and all impure tests should be done in io (which will later be replaced by suspend to conform with arrow-fx). This also means that the result checking in state-machine tests will get a Either<Throwable, R> instead of just an R to properly test exceptions there.

@1Jajen1 1Jajen1 added this to the 1.0 Stable milestone Mar 12, 2019
@1Jajen1 1Jajen1 removed this from the 1.0 Stable milestone Mar 20, 2019
@1Jajen1 1Jajen1 added this to the 1.0 Stable milestone Nov 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant