R: Run all tests in specified file.

test_file {testthat} | R Documentation

## Run all tests in specified file.

### Description

Run all tests in specified file.

### Usage

    test_file(path, reporter = default_reporter(), env = test_env(),
      start_end_reporter = TRUE, load_helpers = TRUE, encoding = "unknown",
      wrap = TRUE)

### Arguments

`path` | path to file
`reporter` | reporter to use
`env` | environment in which to execute the tests
`start_end_reporter` | whether to start and end the reporter
`load_helpers` | Source helper files before running the tests?
`encoding` | File encoding, default is "unknown" `unknown`.
`wrap` | Automatically wrap all code within `test_that()`? This ensures that all expectations are reported, even if outside a test block.

### Value

the results as a "testthat_results" (list)

[Package testthat version 2.0.1 Index]