Skip to content

Commit

Permalink
Getting ready for release
Browse files Browse the repository at this point in the history
  • Loading branch information
andrie committed Jan 15, 2018
1 parent 77eace6 commit d6a3056
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ Suggests:
testthat(>= 0.9),
covr,
withr,
mockery
mockery,
testthis
LazyData: true
LazyLoad: true
VignetteBuilder: knitr
Expand Down
17 changes: 17 additions & 0 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
## Test environments

* local Windows install, R-3.4.3
* ubuntu trusty 14.04 (on travis-ci), testing on:
- R-release
- R-oldrel
- R-devel
* XCode (Mac OS) (on travis-ci)

## R CMD check results

There were no ERRORs or WARNINGs or NOTEs.


## Downstream dependencies

`miniCRAN` has only one reverse dependency, `AzureML`, and all tests pass
4 changes: 2 additions & 2 deletions tests/testthat/test-6-getCranDescription.R
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
if (interactive()) library(testthat)
if (interactive()) {library(testthat); library(testthis)}
context("get CRAN description")

test_that("can read CRAN description", {

skip_on_cran()
mockery::stub(getCranDescription,
what = "tools::CRAN_package_db",
function(...) readRDS("mock_data/pdb.rds")
function(...) testthis::read_testdata("/pdb.rds")
)
p <- getCranDescription("miniCRAN", repos = c(CRAN = getOption("minicran.mran")))
expect_is(p, "data.frame")
Expand Down
File renamed without changes.

0 comments on commit d6a3056

Please sign in to comment.