I have a test that wants to compare two maps containing floats… Hilarity ensues: -10.813026 (this is kaocha’s printed diff). Any neat tricks to compare them within some threshold of accuracy or similar?
I have used https://github.com/nubank/matcher-combinators a few times, it has a within-delta https://github.com/nubank/matcher-combinators#built-in-matchers
That looks excellent, thanks!
Kaocha has matcher-combinators support, too, so it mismatches will be reported correctly. Unfortunately, it's not particularly documented, but I don't believe you have to do anything to take advantage of it.
Hey, is it possible to watch resource files in watch mode? We have some schemas in resources and we want to trigger watch running tests after changing it
Have you tried adding them to the src-paths key under the testable?