Closed rmohr closed 1 year ago
Thanks @rmohr
This is on purpose and it also documented here: https://github.com/nunnatsa/ginkgolinter#missing-assertion-method
The reason for that is that the linter can't guess the right test logic. In this case I want the user to decide how assert the test case.
I think that default handling like Should(Succeed())
may not always be the right choice, and if the linter will fix the warning with such default handling, the user may miss it.
Makes sense. :+1:
Describe the bug
There is an
Eventually
which uses noShould
:It gets reported like this:
Example run:
However when running the linter with
-fix
, it does not get fixed.To Reproduce Steps to reproduce the behavior:
Eventually
which uses inner assertions only, without anyShould
-fix
Expected behavior It would be great if that could be automatically fixed as well. Or is this even something to report? Maybe it should check the function signature as well?