tests/testthat/test-jenkins.R

test_that("use_jenkins() creates a Makefile AND a Jenkinsfile at project root", {
  pkg <- create_local_package()
  use_jenkins()
  expect_proj_file("Makefile")
  expect_proj_file("Jenkinsfile")
})

Try the usethis package in your browser

Any scripts or data that you put into this service are public.

usethis documentation built on Sept. 11, 2024, 5:29 p.m.