Running ‘testthat.R’ [51s/62s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(rqti)
  > 
  > test_check("rqti")
  QTI validation: invalid [engine: xmllint]
  
  /Volumes/Temp/tmp/RtmpK8gZeP/file131d71ac7c29a.xml:2: Element 'invalid': No matching global declaration available for the validation root.
    -> [31m<invalid[0m/>
  
  sh: sha1sum: command not found
  Saving _problems/test-extract_results-1.R
  Authors are found in exercises and added as contributors:  (author).
  Authors are found in exercises and added as contributors:  (author).
  [ FAIL 1 | WARN 0 | SKIP 18 | PASS 323 ]
  
  ══ Skipped tests (18) ══════════════════════════════════════════════════════════
  • Sys.getenv("RQTI_API_USER") == "" is TRUE (17): 'test-api_lms.R:35:5',
    'test-api_lms.R:46:5', 'test-api_lms.R:56:5', 'test-api_lms.R:67:5',
    'test-api_lms.R:79:5', 'test-api_lms.R:106:5', 'test-api_lms.R:137:5',
    'test-api_lms.R:177:5', 'test-api_lms.R:207:5', 'test-api_lms.R:246:5',
    'test-api_lms.R:274:5', 'test-api_lms.R:286:5', 'test-api_lms.R:301:5',
    'test-api_lms.R:314:5', 'test-api_lms.R:335:5', 'test-api_lms.R:359:5',
    'test-knit_functions.R:73:5'
  • empty test (1):
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-extract_results.R:1:1'): (code run outside of `test_that()`) ───
  <cmdError/error/condition>
  Error in `system2("sha1sum", tf, stdout = TRUE)`: error in running command
  Backtrace:
      ▆
   1. ├─base::suppressMessages(rqti::extract_results("file/test_result.zip")) at test-extract_results.R:1:1
   2. │ └─base::withCallingHandlers(...)
   3. └─rqti::extract_results("file/test_result.zip")
   4.   └─rqti:::build_dataset(tdir, level, file_names, hide_filename)
   5.     └─rqti:::get_result_attr_answers(xml_path, hide_filename)
   6.       └─rqti:::sha1_generator(file_name)
   7.         └─base::system2("sha1sum", tf, stdout = TRUE)
  
  [ FAIL 1 | WARN 0 | SKIP 18 | PASS 323 ]
  Error:
  ! Test failures.
  Execution halted