Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(wdman)
  > 
  > test_check("wdman")
  ── 1. Error: canCallChrome (@test-chrome.R#7)  ─────────────────────────────────
  Unknown OS
  1: with_mock(`binman::process_yaml` = binman_process_yaml, `binman::list_versions` = mock_binman_list_versions_chrome, 
         `binman::app_dir` = mock_binman_app_dir, normalizePath = mock_base_normalizePath, 
         list.files = mock_base_list.files, `subprocess::spawn_process` = mock_subprocess_spawn_process, 
         `subprocess::process_return_code` = mock_subprocess_process_return_code, `subprocess::process_kill` = mock_subprocess_process_kill, 
         `wdman:::generic_start_log` = mock_generic_start_log, `wdman:::infun_read` = function(...) {
             "infun"
         }, {
             cDrv <- chrome()
             retCommand <- chrome(retcommand = TRUE)
             expect_identical(cDrv$output(), "infun")
             expect_identical(cDrv$error(), "infun")
             logOut <- cDrv$log()[["stdout"]]
             logErr <- cDrv$log()[["stderr"]]
             expect_identical(logOut, "super duper")
             expect_identical(logErr, "no error here")
             expect_identical(cDrv$stop(), "stopped")
         }) at testthat/test-chrome.R:7
  2: eval(code[[length(code)]], parent.frame())
  3: eval(code[[length(code)]], parent.frame())
  4: chrome()
  5: chrome_check(verbose, check = check)
  6: stop("Unknown OS")
  
  ── 2. Failure: pickUpErrorFromReturnCode (@test-chrome.R#47)  ──────────────────
  `chrome(version = "2.24")` threw an error with unexpected message.
  Expected match: "Chromedriver couldn't be started"
  Actual message: "Unknown OS"
  
  ── 3. Failure: pickUpErrorFromPortInUse (@test-chrome.R#66)  ───────────────────
  `chrome(version = "2.24")` threw an error with unexpected message.
  Expected match: "Chrome Driver signals port"
  Actual message: "Unknown OS"
  
  ── 4. Error: canCallGecko (@test-gecko.R#7)  ───────────────────────────────────
  Unknown OS
  1: with_mock(`binman::process_yaml` = function(...) {
     }, `binman::list_versions` = mock_binman_list_versions_gecko, `binman::app_dir` = mock_binman_app_dir, 
         normalizePath = mock_base_normalizePath, list.files = mock_base_list.files, `subprocess::spawn_process` = mock_subprocess_spawn_process, 
         `subprocess::process_return_code` = mock_subprocess_process_return_code, `subprocess::process_kill` = mock_subprocess_process_kill, 
         `wdman:::generic_start_log` = mock_generic_start_log, `wdman:::infun_read` = function(...) {
             "infun"
         }, {
             gDrv <- gecko()
             retCommand <- gecko(retcommand = TRUE)
             expect_identical(gDrv$output(), "infun")
             expect_identical(gDrv$error(), "infun")
             logOut <- gDrv$log()[["stdout"]]
             logErr <- gDrv$log()[["stderr"]]
             expect_identical(logOut, "super duper")
             expect_identical(logErr, "no error here")
             expect_identical(gDrv$stop(), "stopped")
         }) at testthat/test-gecko.R:7
  2: eval(code[[length(code)]], parent.frame())
  3: eval(code[[length(code)]], parent.frame())
  4: gecko()
  5: gecko_check(verbose, check = check)
  6: stop("Unknown OS")
  
  ── 5. Failure: pickUpErrorFromReturnCode (@test-gecko.R#47)  ───────────────────
  `gecko(version = "0.11.0")` threw an error with unexpected message.
  Expected match: "Geckodriver couldn't be started"
  Actual message: "Unknown OS"
  
  ── 6. Failure: pickUpErrorFromPortInUse (@test-gecko.R#66)  ────────────────────
  `gecko(version = "0.11.0")` threw an error with unexpected message.
  Expected match: "Gecko Driver signals port"
  Actual message: "Unknown OS"
  
  ── 7. Error: canCallPhantomJS (@test-phantom.R#8)  ─────────────────────────────
  Unknown OS
  1: with_mock(`binman::process_yaml` = function(...) {
     }, `binman::list_versions` = mock_binman_list_versions_phantomjs, `binman::app_dir` = mock_binman_app_dir, 
         normalizePath = mock_base_normalizePath, list.files = mock_base_list.files, `subprocess::spawn_process` = mock_subprocess_spawn_process, 
         `subprocess::process_return_code` = mock_subprocess_process_return_code, `subprocess::process_kill` = mock_subprocess_process_kill, 
         `wdman:::generic_start_log` = mock_generic_start_log, `wdman:::infun_read` = function(...) {
             "infun"
         }, {
             pDrv <- phantomjs(version = "latest")
             retCommand <- phantomjs(version = "latest", retcommand = TRUE)
             expect_identical(pDrv$output(), "infun")
             expect_identical(pDrv$error(), "infun")
             logOut <- pDrv$log()[["stdout"]]
             logErr <- pDrv$log()[["stderr"]]
             expect_identical(logOut, "super duper")
             expect_identical(logErr, "no error here")
             expect_identical(pDrv$stop(), "stopped")
         }) at testthat/test-phantom.R:8
  2: eval(code[[length(code)]], parent.frame())
  3: eval(code[[length(code)]], parent.frame())
  4: phantomjs(version = "latest")
  5: phantom_check(verbose, check = check)
  6: stop("Unknown OS")
  
  ── 8. Failure: pickUpErrorFromReturnCode (@test-phantom.R#48)  ─────────────────
  `phantomjs(version = "2.1.1")` threw an error with unexpected message.
  Expected match: "PhantomJS couldn't be started"
  Actual message: "Unknown OS"
  
  ── 9. Failure: pickUpErrorFromPortInUse (@test-phantom.R#67)  ──────────────────
  `phantomjs(version = "2.1.1")` threw an error with unexpected message.
  Expected match: "PhantomJS signals port"
  Actual message: "Unknown OS"
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 47 SKIPPED: 0 FAILED: 9
  1. Error: canCallChrome (@test-chrome.R#7) 
  2. Failure: pickUpErrorFromReturnCode (@test-chrome.R#47) 
  3. Failure: pickUpErrorFromPortInUse (@test-chrome.R#66) 
  4. Error: canCallGecko (@test-gecko.R#7) 
  5. Failure: pickUpErrorFromReturnCode (@test-gecko.R#47) 
  6. Failure: pickUpErrorFromPortInUse (@test-gecko.R#66) 
  7. Error: canCallPhantomJS (@test-phantom.R#8) 
  8. Failure: pickUpErrorFromReturnCode (@test-phantom.R#48) 
  9. Failure: pickUpErrorFromPortInUse (@test-phantom.R#67) 
  
  Error: testthat unit tests failed
  Execution halted