Is it recommended to mix Property-based Testing a...
# getting-started
r
Is it recommended to mix Property-based Testing and Behavior Spec when using https://github.com/kotlintest
m
You can also ask in #kotlintest. I'd say it's fine. Your tests should be appropriate to what you're testing, and not necessarily all the same.
r
Thanks
r
ah, I tried kotlintest once, but I want to use random data as my test case, and it's just not very good. I backed to JUnit eventually. I'll say there's still nothing better, or equivalent to NUnit on .NET, both for easy of use (in my case
Random
annotation is what you want in NUnit) and IDE integration among the test framework I've used. also NUnit has it's own problem, but it's out of scope.
m
Kotlintest does support Property based testing, including shrinking. Did you try that? I'm not aware of JUnit having property based testing directly, although there are some add-on libraries that can provide it.
r
i've tried that, and tweak it for a long time... it did't work well for my case. I met other problems as well, but I just can't remember... seems one of them is related to IDE integration. --- yeah, JUnit don't have property based testing, I just on the most native way: writing an
ArgumentsProvider