tests/testthat/test-makeParse.R

context("makeParse function")

test_that("top level function runs", {

  result <- makeParse("mkdb.txt")

  # Nothing to demanding just yet
  expect_is(result, "list")

  expect_gt(length(result), 0)
})

test_that("Can run make", {

  result <- makeParse(makefile = "test.makefile")

  # Nothing to demanding just yet
  expect_is(result, "list")

  expect_gt(length(result), 0)

  unlink("count_test_lines.txt")

})
dougmet/makeparse documentation built on May 15, 2019, 10:44 a.m.