ExtTests {biodb} | R Documentation

## Extension tests class

### Description

A class for generating test files.

### Details

This class generates a test file for running biodb generic tests, and a test file containing an example of a custom test for this extension.

### Super class

`biodb::ExtGenerator` -> `ExtTests`

### Methods

#### Public methods

- `ExtTests$new()`

- `ExtTests$clone()`

Inherited methods

- `biodb::ExtGenerator$generate()`

- `biodb::ExtGenerator$upgrade()`

#### Method `new()`

Constructor

##### Usage

    ExtTests$new(...)

##### Arguments

`...`

  See the constructor of ExtGenerator for the parameters.

##### Returns

A new instance.

#### Method `clone()`

The objects of this class are cloneable with this method.

##### Usage

    ExtTests$clone(deep = FALSE)

##### Arguments

`deep`

  Whether to make a deep clone.

### Examples

    # Generate a new package:
    pkgFolder <- file.path(tempfile(), 'biodbFoo')
    dir.create(pkgFolder, recursive=TRUE)
    biodb::ExtTests$new(path=pkgFolder, dbName='foo.db', rcpp=TRUE,
                        remote=TRUE)$generate()

[Package biodb version 1.0.4 Index]