-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failures when running the tests interactively #47
Comments
==> devtools::test()
Loading httptest
Loading required package: testthat
Testing httptest
✓ | OK F W S | Context
✓ | 30 1 | capture-requests [4.1 s]
─────────────────────────────────────────────────────────
Skip (test-capture-requests.R:149:9): Recorded JSON is prettified
Reason: TODO: prettify when simplify=FALSE
─────────────────────────────────────────────────────────
✓ | 4 | content-type
✓ | 17 1 | expect-header [1.1 s]
─────────────────────────────────────────────────────────
Skip (test-expect-header.R:40:13): expect_header with mock API
Reason: third_edition is TRUE
─────────────────────────────────────────────────────────
✓ | 42 | fake-http [0.3 s]
⠋ | 11 | find-redactor Using redact.R from "testpkg"
x | 18 1 | find-redactor [2.0 s]
─────────────────────────────────────────────────────────
Error (test-find-redactor.R:99:13): Loading a package with pkgload (devtools)
Error: namespace 'pkgload' is imported by 'devtools' so cannot be unloaded
Backtrace:
1. base::unloadNamespace("pkgload") test-find-redactor.R:99:12
─────────────────────────────────────────────────────────
✓ | 7 | json-equal
✓ | 46 | mock-api [0.7 s]
✓ | 13 | mock-paths [0.2 s]
✓ | 5 1 | offline [0.2 s]
─────────────────────────────────────────────────────────
Skip (test-offline.R:11:9): skip_if_disconnected when disconnected
Reason: This should skip
─────────────────────────────────────────────────────────
x | 1 1 | public
─────────────────────────────────────────────────────────
Failure (test-public.R:7:9): If a function is not exported, the public test context errors
`.internalFunction()` did not throw the expected error.
─────────────────────────────────────────────────────────
x | 38 3 1 1 | redact [1.7 s]
─────────────────────────────────────────────────────────
Failure (test-redact.R:173:9): But the mock file gets written to the modified path with altered content
`object` did not throw the expected error.
Warning (test-redact.R:173:9): But the mock file gets written to the modified path with altered content
4 components of `...` were not used.
We detected these problematic arguments:
* `fixed`
* `ignore.case`
* `perl`
* `useBytes`
Did you misspecify an argument?
Backtrace:
1. httptest::expect_GET(GET("http://example.com/get"), "http://example.com/get") test-redact.R:173:8
2. httptest::expect_mock_request(object, "GET ", url, " ", ...) /home/maelle/Documents/ropensci/httptest/R/expect-request.R:46:4
3. request_happened()(...) /home/maelle/Documents/ropensci/httptest/R/expect-request.R:89:4
4. testthat:::expect_condition_matching(...)
6. ellipsis:::action_dots(...)
Failure (test-redact.R:175:9): But the mock file gets written to the modified path with altered content
`alt <- GET("http://example.com/fakeurl")` threw an unexpected error.
Message: GET http://example.com/fakeurl (example.com/fakeurl.json)
Class: simpleError/error/condition
Backtrace:
1. testthat::expect_error(...) test-redact.R:175:8
7. httr::GET("http://example.com/fakeurl")
8. httr:::request_perform(req, hu$handle$handle)
9. httr:::request_fetch(req$output, req$url, handle)
11. httptest::stop_request(req) /home/maelle/Documents/ropensci/httptest/R/mock-api.R:62:4
Error (test-redact.R:176:9): But the mock file gets written to the modified path with altered content
Error: objet 'alt' introuvable
Backtrace:
1. testthat::expect_identical(content(alt), list(changed = TRUE)) test-redact.R:176:8
4. httr::content(alt)
6. httr:::is.response(x)
Skip (test-redact.R:203:9): gsub_response handles URL encoding
Reason: TODO: handle URL escaping
─────────────────────────────────────────────────────────
✓ | 8 | trace [0.2 s]
✓ | 35 | use-httptest [0.2 s]
✓ | 16 | vignette [1.1 s]
✓ | 15 1 | without-internet [0.5 s]
─────────────────────────────────────────────────────────
Skip (test-without-internet.R:50:13): max.print option
Reason: third_edition is TRUE
─────────────────────────────────────────────────────────
══ Results ══════════════════════════════════════════════
Duration: 12.5 s
── Skipped tests ───────────────────────────────────────
● TODO: handle URL escaping (1)
● TODO: prettify when simplify=FALSE (1)
● This should skip (1)
● third_edition is TRUE (2)
[ FAIL 5 | WARN 1 | SKIP 5 | PASS 295 ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For info as it doesn't seem to impede development :-)
I see the messages are in French, will try to fix
Created on 2020-10-21 by the reprex package (v0.3.0.9001)
The text was updated successfully, but these errors were encountered: