Last updated on 2024-06-27 08:50:26 CEST.
Package | ERROR | OK |
---|---|---|
cancerscreening | 13 | |
khisr | 1 | 12 |
Current CRAN status: OK: 13
Current CRAN status: ERROR: 1, OK: 12
Version: 1.0.4
Check: tests
Result: ERROR
Running ‘spelling.R’ [0s/1s]
Running ‘testthat.R’ [5s/7s]
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/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(khisr)
>
> test_check("khisr")
[ FAIL 5 | WARN 3 | SKIP 8 | PASS 103 ]
══ Skipped tests (8) ═══════════════════════════════════════════════════════════
• No DHIS2 credentials (7): 'test-get_analytics.R:3:5',
'test-get_analytics_by_level.R:3:5',
'test-get_data_elements_with_category_options.R:3:5',
'test-get_data_sets_by_level.R:3:5', 'test-get_metadata.R:3:5',
'test-get_metadata_helpers.R:3:5', 'test-get_organisations_by_level.R:3:5'
• On CRAN (1): 'test-AuthCred-class.R:3:5'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-khis_cred.R:41:5'): khis_cred works correctly using configuration file ──
khis_has_cred() is not TRUE
`actual`: FALSE
`expected`: TRUE
── Failure ('test-khis_cred.R:43:5'): khis_cred works correctly using configuration file ──
khis_username() (`actual`) not equal to "admin" (`expected`).
`actual` is NULL
`expected` is a character vector ('admin')
── Failure ('test-khis_cred.R:63:5'): khis_cred works correctly using configuration file ──
khis_has_cred() is not TRUE
`actual`: FALSE
`expected`: TRUE
── Failure ('test-khis_cred.R:65:5'): khis_cred works correctly using configuration file ──
khis_username() (`actual`) not equal to "admin" (`expected`).
`actual` is NULL
`expected` is a character vector ('admin')
── Failure ('test-khis_cred.R:85:5'): req_auth_khis_basic works correctly ──────
Expected `httr2::request("https://example.com") %>% req_auth_khis_basic()` to run without any errors.
i Actually got a <khis_missing_credentials> with text:
x Missing credentials
! Please set the credentials by calling `khis_cred()`
[ FAIL 5 | WARN 3 | SKIP 8 | PASS 103 ]
Error: Test failures
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc