Hi, im new to konsist and wondering is assertTrue ...
# konsist
b
Hi, im new to konsist and wondering is assertTrue mandatory? can we use something like kotest matchers
Copy code
Konsist
      .scopeFromProduction()
      .files
      .forEach {
        it.text.isEmpty() shouldBe false
      }
p
You can do this, but you are loosing the information about which file is not conform to your rule.
b
kotest clues can be used in that case maybe
p
But why not just use the functionality provided by konsist?
b
p
What's the output you get?
b
Copy code
Assert 'invokeSuspend' was violated (479 times). Invalid files:
├── File xyz
├── File abc
...
p
I think that is the expected behavior. There is no printing of expected and actual value