Conversation
|
Now it's failing everywhere, clearly I did something wrong. Happy to run the tests locally once I have more instructions 🙈 |
|
@quishqa friendly reminder 😸 |
|
Hi @maelle!
|
|
Don't hesitate to ping me to ask any question! |
|
@quishqa any help needed? 😸 |
|
@quishqa any update or help needed? 😸 |
|
Do you need to cache/mock some stuff? |
|
@quishqa any update / any help needed? |
|
Current results on https://ropensci.r-universe.dev/builds Running the tests in ‘tests/testthat.R’ failed.
Last 13 lines of output:
Differences:
`actual`: FALSE
`expected`: TRUE
── Failure ('test-monitor_ar_retrieve_pol.R:15:3'): monitor_ar_retrieve_pol works! ──
Expected `pol_means["pm10"] > 22` to equal `pol_means["pm10"] < 23`.
Differences:
`actual`: FALSE
`expected`: TRUE
[ FAIL 4 | WARN 0 | SKIP 0 | PASS 129 ]
Error:
! Test failures.
Execution halted
Any help needed? |
|
I see the error involves the XML package. That package is no longer maintained (it's just kept alive by the CRAN team) so it might make sense to switch to xml2. I don't promise it'd solve the error but it's a good thing to do in any case 😸 |
|
Happy to help with xml2 if you have any question! |
👋 @quishqa!
I don't know yet why the Windows build is failing (I am on Ubuntu and can't run the tests locally yet see #9) however I think this test file can be made more informative when it fails by using more specific expectations. Some of them might be new to you, I think going over https://testthat.r-lib.org/reference/index.html once in a while is useful as new expectations appear over time (it's useful for me at least!).
Anyway as a summary:
param_means["ws"] > 1 (actual) not equal to param_means["ws"] < 2 (expected)., usingexpect_lt()andexpect_gt()instead will give a clearer failure.expect_setequal()https://testthat.r-lib.org/reference/expect_setequal.html (it does not check the order of columns).