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
{{ message }}
Repository navigation
describe_it doesn't find the right environment when it() is prefixed with testthat:: #2085
changed the title [-]`describe_it` doesn't find the right environment when prefixed with `testthat::`[/-][+]`describe_it` doesn't find the right environment when `it()` is prefixed with `testthat::`[/+]on Jun 4, 2025
Maybe so, but it's definitely not expected that you preface every testthat function with testthat::. This is definitely off label usage of testthat and not something that we generally support.
Activity
[-]`describe_it` doesn't find the right environment when prefixed with `testthat::`[/-][+]`describe_it` doesn't find the right environment when `it()` is prefixed with `testthat::`[/+]averissimo commentedon Jun 26, 2025
Another use case when calling
testthat::italone or within atestthat::describeparent.It tries to set the class definition in the
packagenamespace.Created on 2025-06-26 with reprex v2.1.1
hadley commentedon Jul 16, 2025
Maybe so, but it's definitely not expected that you preface every testthat function with
testthat::. This is definitely off label usage of testthat and not something that we generally support.Explicitly pass `parent.frame()` in `it()` (r-lib#2086)
Fix tests, updates to 3rd edition tests and removes prefix (#30)