Skip to content
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

Test cleanup part 2 #567

Merged
merged 13 commits into from
Mar 31, 2023
Merged

Test cleanup part 2 #567

merged 13 commits into from
Mar 31, 2023

Conversation

etiennebacher
Copy link
Member

@etiennebacher etiennebacher commented Mar 31, 2023

@vincentarelbundock
Copy link
Contributor

Just here to say that I like this a lot.

@IndrajeetPatil
Copy link
Member

(not sure if .runThisTest should be replaced by skip_on_cran() (what I did so far)

Yes! I think the intent was to skip the tests on CRAN and run only on devel versions of GitHub.

@etiennebacher
Copy link
Member Author

etiennebacher commented Mar 31, 2023

I really have no clue anymore why R CMD check fails, it's all green for me.

Also, the dataset dat.bcg in metafor moved to metadat but it requires R >= 4.0.0 so it fails on older checks, @IndrajeetPatil where do I need to add this exception?

@IndrajeetPatil
Copy link
Member

IndrajeetPatil commented Mar 31, 2023

Fixed in easystats/workflows@7cf7cbb.

Re-triggering to see if the fix works.

@etiennebacher
Copy link
Member Author

I really have no clue anymore why R CMD check fails, it's all green for me.

Actually devtools::test() passes but tests fail in devtools::check()

Fixed in easystats/workflows@7cf7cbb.

Thanks!

@etiennebacher
Copy link
Member Author

etiennebacher commented Mar 31, 2023

Actually the problem is that check_outliers(mtcars, method = c("zscore", "iqr")) returns no outlier, so the test is wrong but which part? The expectation or the function? @rempsyc (test-check_outliers.R, test "multiple methods which")

@rempsyc
Copy link
Member

rempsyc commented Mar 31, 2023

That's my bad. I made a code change in #544. I'll fix it.

@codecov-commenter
Copy link

Codecov Report

Merging #567 (1b4dc82) into main (1ff1e20) will not change coverage.
The diff coverage is 100.00%.

❗ Current head 1b4dc82 differs from pull request most recent head d870aec. Consider uploading reports for the commit d870aec to get more accurate results

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@           Coverage Diff           @@
##             main     #567   +/-   ##
=======================================
  Coverage   48.72%   48.72%           
=======================================
  Files          84       84           
  Lines        5642     5642           
=======================================
  Hits         2749     2749           
  Misses       2893     2893           
Impacted Files Coverage Δ
R/check_outliers.R 82.43% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Member

@IndrajeetPatil IndrajeetPatil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a ton, @etiennebacher! 💕

That was a lot of work and we really appreciate it.

@IndrajeetPatil IndrajeetPatil merged commit 7ff3e57 into main Mar 31, 2023
@IndrajeetPatil IndrajeetPatil deleted the test-cleanup-part2 branch March 31, 2023 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants