New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support errorf assertions for Hugo 0.62.0+ #20
Comments
Caused by gohugoio/hugo#6653 |
The issue is compounded by the fact that Hugo suppresses repeated error/warn logs from a single file. e.g. if you want to assert on an error string "this is an error" in multiple test cases in your test file, then Hugo will only output it once. This makes it impossible to figure out what was the error output. I had rewrote the error assertion logic (WIP) in this |
Fix issue #20 / support for errorf assertions
Fixed in v1.1.0 |
Hugo 0.62.0+ doesn't log
errorf
output in the HTML output. This makes it harder for us to assert on the output. Add support for asserting on such versions.One approach is to get the log output and map it somehow to the test. This is not simple as we don't get any file line coordinates in the output.
The text was updated successfully, but these errors were encountered: