Simpler integration of kernel tests into R test framework - #375
Conversation
|
looks good to me! PS: i’ll probably do another PR soon that also integrates the testing systems, but does so in a smarter way. i’ve crated a JSON TestRunner i’ll publish as pip package, and we can consume its output using like 5 lines via a loop and |
|
maybe you could remove the |
I still don't see any advantage to this extra complexity. Complexity in a package you've created is still complexity you have to maintain. Let's keep it simple, at least until we identify a clear need for something more.
Done. I'm not sure if it will work or not, as DeprecationWarnings are ignored by default, so something in the test machinery must be turning them on. |
| @@ -0,0 +1,6 @@ | |||
| context('kernel') | |||
|
|
|||
| status <- system2('python3', 'test_ir.py', wait=TRUE) | |||
There was a problem hiding this comment.
It will be interesting what will happen if we submit that to CRAN: on my system, there is no python3 and in RStudio (or my r package install script), I don't have the kernel testing tool installed, so this tests will basically always fail.
There was a problem hiding this comment.
I guess we'll just remove this file from the tarball we submit to CRAN, in that case :-(
There was a problem hiding this comment.
...or use a series of system commands to install Anaconda ;-). But it may well block network access.
There was a problem hiding this comment.
we add python3 and jupyter_kernel_test to SystemRequirements with an explanation that they’re needed for tests.
see e.g. nbconvertR
|
Suppressing the DeprecationWarnings does appear to have worked :-) |
they are in python, but they aren’t in tests. (i.e. python per default installs a warning filter, which is removed during unit tests) |
See discussion on #371