lockbox icon indicating copy to clipboard operation
lockbox copied to clipboard

Figure out how to write tests

Open robertzk opened this issue 10 years ago • 3 comments

Will be tricky!

robertzk avatar Apr 13 '15 02:04 robertzk

What are you concerned about in terms of trickiness in particular? Building up state of previously installed packages on the machine running the tests?

russellpierce avatar Jun 18 '17 01:06 russellpierce

@drknexus Installing and re-installing packages within tests is typically not advised. Note that lockbox manages dependencies fully within the R session, unlike systems like bundle or node that perform the management at the shell-level (outside of the interpreter).

The design consideration for that is to simplify the workflow for R users, who do not tend to be developers. The downside is that we would have to install and uninstall packages in the tests (or delete the "mocked" libraries). I suppose it is not all that difficult.

I will revisit this later.

robertzk avatar Jun 20 '17 12:06 robertzk

can have testpackages in inst/ and load_all them instead of installing?

kirillseva avatar Aug 22 '17 16:08 kirillseva