Kunde21 / markdownfmt

Like gofmt, but for Markdown.
MIT License
55 stars 7 forks source link

test: Use testify #60

Closed abhinav closed 1 year ago

abhinav commented 1 year ago

The tests currently validate assertions manually, using go-cmp for deep-diffing. This is nice, and it aligns with https://github.com/golang/go/wiki/TestComments#assert-libraries but it results in a massive amount of unnecessary boilerplate.

testify is pretty ubiquitous, and has much nicer error messages. The failure diffs generated by testify are cleaner than go-cmp.

This switches all tests and assertions to testify.