Closed sneumann closed 2 years ago
This PR looks extremely interesting, thanks @sneumann and @hechth. I would however provide an already initialized MsBackend
with the be
variable since not all backends will have (only) a file
parameter (e.g. expecting a database connection instead or even a data frame or similar).
Another very important test suite would be a general test_valid_MsBackend
test suite that takes an already initialized MsBackend
variable be
and then runs all methods defined in the MsBackend.R
file and checks that the returned result is as expected (i.e. expected data type, length of data matches expectation etc). Question is if you are planning to add that too or if we (I) should do that?
I think this can now be closed in favour of https://github.com/rformassspectrometry/Spectra/pull/227 ?
It's up to you @sneumann - you're more than welcome to add additional test suites. #227 adds only test suites for accessing/setting variables.
Closing this PR now.
This is working on #186 . Spectra now includes (and installs) a directory with tests that can be called from the backends. There could (should!) be a few different profiles, checking a (minimum) set of functionality provided by the backends. The initially provided one barely tests anything yet. Yours, Steffen