79291708

Date: 2024-12-18 15:56:32
Score: 0.5
Natty:
Report link

CodeNarc from version 3.3.0 has a rule to detect this kind of mistakes https://codenarc.org/codenarc-rules-junit.html#spockmissingassert-rule

It is priority 3 as default, I would recommend changing it to P1 as the test is potentially useless if the assert is missing

SpockMissingAssert(priority: 1)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: dauer