File: find_test_scripts.Rd

package info (click to toggle)
r-cran-testthat 3.2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,452 kB
  • sloc: cpp: 9,261; ansic: 37; sh: 14; makefile: 5
file content (41 lines) | stat: -rw-r--r-- 1,250 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/test-files.R
\name{find_test_scripts}
\alias{find_test_scripts}
\title{Find test files}
\usage{
find_test_scripts(
  path,
  filter = NULL,
  invert = FALSE,
  ...,
  full.names = TRUE,
  start_first = NULL
)
}
\arguments{
\item{path}{path to tests}

\item{filter}{If not \code{NULL}, only tests with file names matching this
regular expression will be executed. Matching is performed on the file
name after it's stripped of \code{"test-"} and \code{".R"}.}

\item{invert}{If \code{TRUE} return files which \strong{don't} match.}

\item{...}{Additional arguments passed to \code{\link[=grepl]{grepl()}} to control filtering.}

\item{start_first}{A character vector of file patterns (globs, see
\code{\link[utils:glob2rx]{utils::glob2rx()}}). The patterns are for the file names (base names),
not for the whole paths. testthat starts the files matching the
first pattern first,  then the ones matching the second, etc. and then
the rest of the files, alphabetically. Parallel tests tend to finish
quicker if you start the slowest files first. \code{NULL} means alphabetical
order.}
}
\value{
A character vector of paths
}
\description{
Find test files
}
\keyword{internal}