-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Cats testkit based on other testing frameworks? #2244
Comments
I'm not a fan of any existing test framework at this point because all of them are side-effecting, but I would definitely prefer something lighter like minitest. |
I am curious what people would need from the cats-testkit if they are using |
The main feature is setting up law-checking, which isn't even remotely obvious. Also providing a combination of deps that work together. This stuff was always a nightmare in scalaz. |
It also comes with discipline integration so you can do |
|
maybe we should update the documentation to make this less confusing. |
As far as I can tell there is exactly zero doc for discipline so I don't consider it something we can expect people to use directly. So yeah maybe we could fix that. |
A better guide for discipline would be extremely useful. As without it being easy to put into place unlawful instances will likely proliferate outside of libraries that have overcome that entry-barrier. |
def checkAll(name: String, ruleSet: Laws#RuleSet): Unit = {
for ((id, prop) ← ruleSet.all.properties)
test(name + "." + id) {
check(prop)
}
} I guess what we really need is to provide |
|
Catalysts provides all of this, and has done so for a few years. And was based on work done in cats, spire, algebra, shapeless, etc. Its fine if folk decide on another solution, but we may well be going round in circles here. |
Btw, maybe not obvious, but discipline is well documented in the scaladoc. |
Picking this up, should we provide |
Right now our cats testkit is based on
ScalaTest
, personally I don't really like that testing library all that much, so it'd be great if we could offer an alternative that's just as integrated for law testing.I think Monix/minitest would be a good candidate to get this going :) what do you think?
The text was updated successfully, but these errors were encountered: