Skip to content

Commit 40732de

Browse files
committed
prepare for CRAN release
1 parent a08c239 commit 40732de

17 files changed

+109
-395
lines changed

DESCRIPTION

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
Package: testthis
22
Type: Package
3-
Title: Utility Functions and Rstudio Addins to Make Using the testthat
4-
Package Even More Fun
5-
Version: 1.0.1.9001
3+
Title: Utils and 'RStudio' Addins to Make Testing Even More Fun
4+
Version: 1.0.2
65
Authors@R: person("Stefan", "Fleck", email = "[email protected]", role = c("aut", "cre"))
76
Maintainer: Stefan Fleck <[email protected]>
8-
Description:
9-
Rstudio addins for several common testing-related tasks during package
10-
development, such as switching between a source file and an associated test
11-
file, or running unit tests in a single test file (hotkeyable!).
12-
testthis also provides utility function to manage tests in subdirectories of
13-
the test/testthis directory.
7+
Description:
8+
Utility functions and 'RStudio' addins to ease the life of people using
9+
'testthat', 'devtools' and 'usethis' in their package development workflow.
10+
Hotkeyable addins are provided for such common tasks as switching between a
11+
source file and an associated test file, or running unit tests in a single
12+
file. 'testthis' also provides utility function to manage and run tests in
13+
subdirectories of the test/testthat directory.
1414
License: MIT + file LICENSE
1515
Imports:
1616
assertthat,
@@ -22,9 +22,7 @@ Imports:
2222
utils,
2323
stats,
2424
rprojroot,
25-
tools,
26-
colt,
27-
R6
25+
tools
2826
Suggests:
2927
knitr,
3028
rmarkdown,

NAMESPACE

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Generated by roxygen2: do not edit by hand
22

33
S3method(print,Test_coverage)
4-
export(ColtSummaryReporter)
54
export(get_test_coverage)
65
export(lest_this)
76
export(open_testfile)

NEWS.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
# testthis 1.0.1.9000
1+
# testthis 1.0.2
22

33
* added `test_all()` to run tests in all subdirectories
44

55

6-
7-
86
# testthis 1.0.1
97

108
* Reorganized package documentation (README, vignette, `?testthis`)
@@ -13,7 +11,6 @@
1311
* `get_test_coverage()` now recognizes tests in test subdirs
1412

1513

16-
1714
# testthis 1.0.0
1815

1916
* Reworked an expanded infrastructure functions, such as `use_testdata()` and

R/Test_coverage.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
#' @examples
3030
#'
3131
#' \dontrun{
32-
#' #' x <- get_test_coverage()
33-
#' as.data.frame(x) # To view in tabular form
32+
#' x <- get_test_coverage()
33+
#' as.data.frame(x)
3434
#' }
3535
#'
3636
get_test_coverage <- function(

R/open_testfile.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#' Open associated test_file
22
#'
3-
#' If the currently open file in the Rstudio editor is called \file{myfun.R} this
3+
#' If the currently open file in the RStudio editor is called \file{myfun.R} this
44
#' opens \file{tests/testthat/test_myfun.R} in a new tab. This function can also
55
#' be used to jump back and forth between an R script and the associated test
66
#' file.

R/reporter-coltSummary.R

Lines changed: 0 additions & 286 deletions
This file was deleted.

R/test_skeleton.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#' Create a test skeleton file for the currently open .R file
22
#'
3-
#' If the file currently open in the Rstudio editor is called \code{my_function.R},
3+
#' If the file currently open in the RStudio editor is called \code{my_function.R},
44
#' this creates the file \file{/tests/testthat/test_my_function.R} and fills it
55
#' with a basic test skeleton.
66
#'

R/test_subdir.R

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,7 @@ test_manual <- function(base_path = '.', ...){
111111
#' @export
112112
test_all <- function(
113113
base_path = ".",
114-
...,
115-
reporter = testthat::ProgressReporter
114+
...
116115
){
117116
pkg_dir <- devtools::as.package(base_path)$path
118117

@@ -126,7 +125,7 @@ test_all <- function(
126125
dirs <- dirs[dirs != "testdata"]
127126

128127
testthat::with_mock(
129-
devtools::test(reporter = reporter),
128+
devtools::test(...),
130129
`testthat::find_test_scripts` = find_test_scripts_mock
131130
)
132131
}

0 commit comments

Comments
 (0)