tests/testthat.R

library(testthat)
library(MsBackendMsp)

## Run specific (backend) package tests
test_check("MsBackendMsp")

## Run additional tests from Spectra:
test_suite <- system.file("test_backends", "test_MsBackend",
                          package = "Spectra")

fls <- system.file("extdata", "minimona.msp", package = "MsBackendMsp")
be <- MsBackendMsp()
be <- backendInitialize(
    be, fls, mapping = spectraVariableMapping(MsBackendMsp(), "mona"))

test_dir(test_suite, stop_on_failure = TRUE)
sneumann/MsBackendMsp documentation built on April 13, 2024, 7:28 a.m.