-
Notifications
You must be signed in to change notification settings - Fork 2
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
Cannot test grouped data #68
Comments
To apply function to dplyr grouped data, the documentation has it https://dplyr.tidyverse.org/reference/group_map.html Following seem working ok: mtcars %>% both passedmtcars %>% Error in reporter$stop_if_needed() : Test failed |
Thanks @TiO2. I think it's probably still worth refactoring to natively support grouped data. It's just a quirk of the implementation on the back-end that's preventing it from working |
Hey @kinto-b, I'm leaning towards removing/ignoring groups if a grouped tibble is used (so they don't throw an error), but I can't really see a need for any further support. The way I see it our focus is on testing data sets as a whole. If tests need to be run separately on each group then the grouping can be done outside of the test functions like in the example from @TiO2 above. Happy to be convinced otherwise though! |
@gorcha Oh no I agree. I really just meant fixing the bug that's preventing grouped data from being passed through. I can't really think of a good use-case for group-wise testing |
OK cool, easy! 🙂 |
Created on 2022-05-20 by the reprex package (v2.0.1)
The text was updated successfully, but these errors were encountered: