Running 'testthat.R'
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(precommit)
  > test_check("precommit")
  [ FAIL 3 | WARN 0 | SKIP 5 | PASS 119 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (3)
  • not_conda() is TRUE (1)
  • on_cran() is TRUE (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-hooks.R:277:1): (code run outside of `test_that()`) ───────────
  Expected: No error. Found:
  Error in system2("git", "status", stdout = TRUE) : '"git"' not found
  Calls: grepl -> is.factor -> system2
  Execution halted
  Backtrace:
      ▆
   1. └─precommit:::run_test("lintr", suffix = "-success.R", error_msg = NULL) at test-hooks.R:277:0
   2.   └─precommit:::run_test_impl(...)
   3.     └─precommit:::hook_state_assert(...)
   4.       └─purrr::map2(...)
   5.         └─precommit .f(.x[[1L]], .y[[1L]], ...)
  ── Failure (test-hooks.R:283:1): (code run outside of `test_that()`) ───────────
  paste(contents, collapse = "\n") does not match "not lint free".
  Actual value: "Error in system2("git", "status", stdout = TRUE) : '"git"' not found\nCalls: grepl -> is.factor -> system2\nExecution halted"
  Backtrace:
      ▆
   1. └─precommit:::run_test("lintr", suffix = "-fail.R", error_msg = "not lint free") at test-hooks.R:283:0
   2.   └─precommit:::run_test_impl(...)
   3.     └─precommit:::hook_state_assert(...)
   4.       └─purrr::map2(...)
   5.         └─precommit .f(.x[[1L]], .y[[1L]], ...)
   6.           └─testthat::expect_match(...)
   7.             └─testthat:::expect_match_(...)
  ── Failure (test-hooks.R:286:1): (code run outside of `test_that()`) ───────────
  Expected: No error. Found:
  Error in system2("git", "status", stdout = TRUE) : '"git"' not found
  Calls: grepl -> is.factor -> system2
  Execution halted
  Backtrace:
      ▆
   1. └─precommit:::run_test(...) at test-hooks.R:286:0
   2.   └─precommit:::run_test_impl(...)
   3.     └─precommit:::hook_state_assert(...)
   4.       └─purrr::map2(...)
   5.         └─precommit .f(.x[[1L]], .y[[1L]], ...)
  
  [ FAIL 3 | WARN 0 | SKIP 5 | PASS 119 ]
  Error: Test failures
  Execution halted