Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Execute testthat tests in a package

Source:R/test.R
test.Rd

Usage

test(pkg=".", filter=NULL, stop_on_failure=FALSE, export_all=TRUE,...)test_active_file(file=find_active_file(),...)test_coverage(pkg=".", show_report=interactive(),...)test_coverage_active_file(  file=find_active_file(),  filter=TRUE,  show_report=interactive(),  export_all=TRUE,...)

Arguments

pkg

The package to use, can be a file path to the package or apackage object. Seeas.package() for more information.

filter

If notNULL, only tests with file names matching thisregular expression will be executed. Matching is performed on the filename after it's stripped of"test-" and".R".

stop_on_failure

IfTRUE, throw an error if any tests fail.

export_all

IfTRUE (the default), export all objects.IfFALSE, export only the objects that are listed as exportsin the NAMESPACE file.

...

additional arguments passed to wrapped functions.

file

One or more source or test files. If a source file thecorresponding test file will be run. The default is to use the active filein RStudio (if available).

show_report

Show the test coverage report.


[8]ページ先頭

©2009-2025 Movatter.jp