-
Notifications
You must be signed in to change notification settings - Fork 49
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
Use both Discipline and MutableIOSuite #528
Comments
Not currently. I think it'd be a tad weird, in that typeclasse laws (which discipline is meant for) should probably not depend on some dynamic context. But you have my curiosity, can you elaborate on the usecase ? |
I've created a trait of Repository. I would like to make laws based on it. This requires connection to a database (e.g. Postgres run inside TestContainers). I would disagree with that. If I would like to test if Slick's |
Mmm yeah, that's a fair point I guess. In this case I'd be happy to review a PR adding this feature 😄 |
grrr 😄 how to achive this? currently obviously i have to use something that relays on if i would like to edit current Discipline trait it would be binary incompatible although the users would only need to change: +object FooLawTests extends FunSuite with Discipline {
-object FooLawTests extends SimpleMutableIOSuite with Discipline {
checkAll("foo", FooTests(implementation).foo)
+ pureTest("if someone added any unit test) { ... }
- test("if someone added any unit test) { ... }
} |
Yeah let's try to make a new trait instead (could call it |
I'm in a crossroad right now. At first I wanted to use In case of law testing I want to define following function 1. I can modify
|
the I think this is sufficient to justify that it should be its own Suite, as opposed to extending the existing
|
I've created a draft #548. could you take a look if it makes sense, so i will go forward creating some tests |
without runnable suite I'm unable to run it via intellij or sbt |
Oh, my bad, I take it |
is it possible to use shared resource from MutableIOSuite inside checkAll from Discipline addon?
The text was updated successfully, but these errors were encountered: