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

Come up with recommended testing strategy for Free Algebras. #388

Open
raulraja opened this issue Jul 26, 2017 · 4 comments
Open

Come up with recommended testing strategy for Free Algebras. #388

raulraja opened this issue Jul 26, 2017 · 4 comments
Assignees

Comments

@raulraja
Copy link
Contributor

Today we are able to create algebras and interpreters that can be entirely decoupled and we've seen people testing these mocking interpreters or providing return type abstractions to run tests over Id but there is not a solid recommended way in terms of patterns to test out algebras.

The scope of this issue is to come up with a way to cover all testing aspects when working with Free algebras and provide a reference example implementation over a few of the existing algebras in freestyle-effects or the freestyle-examples repo where the TODO app lives.

@noelmarkham
Copy link
Collaborator

I have some code for reviewing at https://github.com/frees-io/freestyle-examples/pull/5 - it's very early days but some input from others would be welcome

@anamariamv anamariamv removed this from the Sprint 5 milestone Oct 3, 2017
@miciek
Copy link

miciek commented Nov 25, 2017

@noelmarkham I'd like to contribute here as I feel that this issue really needs standardization.

However, your link is no longer available. Can you post it again somewhere so that I can synchronize with you? Thanks.

@raulraja
Copy link
Contributor Author

@miciek Thanks! You may want to talk also to @jserranohidalgo and javierfs89 both are helping us introduce Puretest. https://github.com/hablapps/puretest.
If you can encode your desire way of testing Free and Tagless / Modules with Puretest it'd be a great Freestyle contribution.
On a side note I'm looking forward to your talk on "Freestyle, Free & Tagless: Separation of Concerns on Steroids" at Scala XChange, I'll be there speaking about Freestyle RPC the day before and also running a workshop with @juanpedromoreno on building RPC services with Freestyle. If you need any help with your talk I'll be happy to assist in any way I can.

@raulraja raulraja assigned noelmarkham and unassigned noelmarkham Nov 26, 2017
@jserranohidalgo
Copy link

@raulraja @miciek I left some comments on some ongoing work here. As I said there, IMO, the way to go is giving another version of the puretest DSL in terms of @free.

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

No branches or pull requests

5 participants