resyntax icon indicating copy to clipboard operation
resyntax copied to clipboard

Test logging

Open jackfirth opened this issue 1 year ago • 0 comments

When test cases for complex rules fail, it can be tricky to tell why. Logging helps since the log messages show up in the test output. Going one step further, it would be nice to let tests expect log messages like so:

test: "should not refactor X because of comments"
expect-log: "my-rule: suggestion discarded because it does not preserve all comments"
----------
... code ...
----------

jackfirth avatar Oct 02 '24 18:10 jackfirth