You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tests should obviously cover these explicit strings
I'm not sure that makes sense, those strings are pretty fragile. See here for the type of clunky workaround I've had to set up for this type of test in the past:
I would recommend testing against something more stable, e.g. as.data.frame(x)$linter or x[[1L]]$linter.
There are some cases (like paste_linter()) where several rules are under the same $linter where you'd have to check some parts of the $message too, in which case I'd try and use a minimal regex instead of capturing the exact string.
Several recent PRs have modified output text, yet this had no effect on tests. These include:
Plus new aspects that need to be tested:
And the following which now rely on default
lintr
messages, rather than hard-coded ones here, and which may or may not have changed?Tests should obviously cover these explicit strings, yet clearly do not in current form. Ping @MichaelChirico
The text was updated successfully, but these errors were encountered: