Jim Hester

Results 413 comments of Jim Hester

Sure if this would be useful to you I would be happy for the contribution. However we need to makes sure that is an option and is off by default....

This would require some thought into how to report it. Also a condition in `trace_calls()` to detect conditionals and switch statements.

No, we are not currently working on branch coverage. Thanks for offering to try and tackle it! I am happy to help you if you have questions or run into...

This has to do with how R creates source references. When using braces R always creates a source reference, but without it only the full expression has source references. covr...

I think you are generally better off using the namespace of a proper R package to handle imports and exports of R objects, even in shiny apps. However if you...

There isn't anything in covr to convert the data to lcov currently. We would have to write a new function to convert to lcov. You could take a look at...

There is an open issue about coverage for shiny applications (https://github.com/r-lib/covr/issues/277) I would generally not expect it to work out of the box currently. If you want to try and...

Yes, covr writes the trace files on an on.exit handler, so R needs to be given time to quit rather than being issued a sigkill. In https://github.com/rstudio/shinytest2/blob/08c4060609d5ee9b52278521a08cbf4e0593ffb4/R/app-driver-stop.R#L30-L34 it seems there...