Use deep cloning of reporters in auto_test() and auto_test_package() #456
Also uses withr::with_envvar() instead of devtools::with_envvar() to avoid warning.
Testing auto_test() and auto_test_package() is tricky, but not impossible. An external R script that runs for a certain time can be started using a pattern like this:
The output of that script could be then analyzed by the test.
to avoid aliasing of contents of reporter members that are R6 objects