Is there already an arrow + hamkrest library out t...
# arrow
r
Is there already an arrow + hamkrest library out there? I find myself writing a lot of extra hamkrest matchers for arrow data types and I don't want to release my own library if there's already one I should know about
r
none that I’m aware of
m
If you use kotlintest, I believe they've included assertions for arrow too.
But that implies switching testing frameworks.
r
I use JUnit5 with some extra goodies like mockk and hamkrest
m
Junit5 is very good. I think kotlintest is a little bit better, and has good assertions. Of course if you're used to the hamcrest style of matches, you may not like it. It's like AssertJ/Atrium style of matchers.
r
Only downside of kotlintest is not being able to run individual test cases in intellij. You can run an entire class at a time or an entire sweet, but not a single test case.
1
j
You can use the kotlintest Intellij plugin to run single test cases, see: https://plugins.jetbrains.com/plugin/11585-kotlintest/.
r
🤯 Sold. Thanks!
r
That plugin feels brittle, it frequently doesn't give me the option of running with KotlinTest
1
s
There's a bug whereby if you already have a JUnit "run configuration" for a test, it can override the KotlinTest one @Ryan Benasutti