home.social

#testthat — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #testthat, aggregated by home.social.

fetched live
  1. Discover the power of property-based testing in R with the #quickcheck package! Seamlessly integrates with #testthat and offers a variety of generators for atomic vectors, lists, and tibbles. Perfect for ensuring your code's reliability. Check it out: github.com/armcn/quickcheck #rstats #rprogramming #testing

  2. Discover the power of property-based testing in R with the #quickcheck package! Seamlessly integrates with #testthat and offers a variety of generators for atomic vectors, lists, and tibbles. Perfect for ensuring your code's reliability. Check it out: github.com/armcn/quickcheck #rstats #rprogramming #testing

  3. Its good to have many tests in your R package, but it can be a pain to debug some failing tests when it happens. {lazytest} for the rescue: only rerun the failing tests, until they pass: lazytest.cynkra.com/ #RStats #testthat #lazy

  4. Its good to have many tests in your R package, but it can be a pain to debug some failing tests when it happens. {lazytest} for the rescue: only rerun the failing tests, until they pass: lazytest.cynkra.com/ #RStats #testthat #lazy

  5. Discover the power of property-based testing in R with the #quickcheck package! Seamlessly integrates with #testthat and offers a variety of generators for atomic vectors, lists, and tibbles. Perfect for ensuring your code's reliability. Check it out: github.com/armcn/quickcheck #rstats #rprogramming #testing

  6. Discover the power of property-based testing in R with the #quickcheck package! Seamlessly integrates with #testthat and offers a variety of generators for atomic vectors, lists, and tibbles. Perfect for ensuring your code's reliability. Check it out: github.com/armcn/quickcheck #rstats #rprogramming #testing

  7. Its good to have many tests in your R package, but it can be a pain to debug some failing tests when it happens. {lazytest} for the rescue: only rerun the failing tests, until they pass: lazytest.cynkra.com/ #RStats #testthat #lazy

  8. Its good to have many tests in your R package, but it can be a pain to debug some failing tests when it happens. {lazytest} for the rescue: only rerun the failing tests, until they pass: lazytest.cynkra.com/ #RStats #testthat #lazy

  9. Discover the power of property-based testing in R with the #quickcheck package! Seamlessly integrates with #testthat and offers a variety of generators for atomic vectors, lists, and tibbles. Perfect for ensuring your code's reliability. Check it out: github.com/armcn/quickcheck #rstats #rprogramming #testing

  10. Discover the power of property-based testing in R with the #quickcheck package! Seamlessly integrates with #testthat and offers a variety of generators for atomic vectors, lists, and tibbles. Perfect for ensuring your code's reliability. Check it out: github.com/armcn/quickcheck #rstats #rprogramming #testing

  11. Its good to have many tests in your R package, but it can be a pain to debug some failing tests when it happens. {lazytest} for the rescue: only rerun the failing tests, until they pass: lazytest.cynkra.com/ #RStats #testthat #lazy

  12. Its good to have many tests in your R package, but it can be a pain to debug some failing tests when it happens. {lazytest} for the rescue: only rerun the failing tests, until they pass: lazytest.cynkra.com/ #RStats #testthat #lazy

  13. Discover the power of property-based testing in R with the #quickcheck package! Seamlessly integrates with #testthat and offers a variety of generators for atomic vectors, lists, and tibbles. Perfect for ensuring your code's reliability. Check it out: github.com/armcn/quickcheck #rstats #rprogramming #testing

  14. Discover the power of property-based testing in R with the #quickcheck package! Seamlessly integrates with #testthat and offers a variety of generators for atomic vectors, lists, and tibbles. Perfect for ensuring your code's reliability. Check it out: github.com/armcn/quickcheck #rstats #rprogramming #testing

  15. Its good to have many tests in your R package, but it can be a pain to debug some failing tests when it happens. {lazytest} for the rescue: only rerun the failing tests, until they pass: lazytest.cynkra.com/ #RStats #testthat #lazy

  16. Its good to have many tests in your R package, but it can be a pain to debug some failing tests when it happens. {lazytest} for the rescue: only rerun the failing tests, until they pass: lazytest.cynkra.com/ #RStats #testthat #lazy

  17. Discover the power of property-based testing in R with the #quickcheck package! Seamlessly integrates with #testthat and offers a variety of generators for atomic vectors, lists, and tibbles. Perfect for ensuring your code's reliability. Check it out: github.com/armcn/quickcheck #rstats #rprogramming #testing

  18. Discover the power of property-based testing in R with the #quickcheck package! Seamlessly integrates with #testthat and offers a variety of generators for atomic vectors, lists, and tibbles. Perfect for ensuring your code's reliability. Check it out: github.com/armcn/quickcheck #rstats #rprogramming #testing

  19. Its good to have many tests in your R package, but it can be a pain to debug some failing tests when it happens. {lazytest} for the rescue: only rerun the failing tests, until they pass: lazytest.cynkra.com/ #RStats #testthat #lazy

  20. Its good to have many tests in your R package, but it can be a pain to debug some failing tests when it happens. {lazytest} for the rescue: only rerun the failing tests, until they pass: lazytest.cynkra.com/ #RStats #testthat #lazy

  21. Discover the power of property-based testing in R with the #quickcheck package! Seamlessly integrates with #testthat and offers a variety of generators for atomic vectors, lists, and tibbles. Perfect for ensuring your code's reliability. Check it out: github.com/armcn/quickcheck #rstats #rprogramming #testing

  22. Discover the power of property-based testing in R with the #quickcheck package! Seamlessly integrates with #testthat and offers a variety of generators for atomic vectors, lists, and tibbles. Perfect for ensuring your code's reliability. Check it out: github.com/armcn/quickcheck #rstats #rprogramming #testing

  23. A common #TestThat frustration I have is trying to track down where messages are coming from in the tests so I can test for them and then suppress them.

    Does anyone know a good way of sussing them out other than running test by test?

    #RStats

  24. A common #TestThat frustration I have is trying to track down where messages are coming from in the tests so I can test for them and then suppress them.

    Does anyone know a good way of sussing them out other than running test by test?

    #RStats

  25. Its good to have many tests in your R package, but it can be a pain to debug some failing tests when it happens. {lazytest} for the rescue: only rerun the failing tests, until they pass: lazytest.cynkra.com/ #RStats #testthat #lazy

  26. Its good to have many tests in your R package, but it can be a pain to debug some failing tests when it happens. {lazytest} for the rescue: only rerun the failing tests, until they pass: lazytest.cynkra.com/ #RStats #testthat #lazy


  27. Edit: uploading results from the different runners worked! I was just impatient.

    Question

    I have a function that has different behavior on Windows and (MacOS/Linux). I have tests that correctly check all of this (using testthat::skip_on_os() ). Everything is working as intended.

    But when I run my CI checks, codecov marks the “windows” lines as untested. My naive solution of running the codecov action on a windows runner is also not solving it.

    Any suggestions?

  28. #rstats #testthat #codecov
    Edit: uploading results from the different runners worked! I was just impatient.

    Question

    I have a function that has different behavior on Windows and (MacOS/Linux). I have tests that correctly check all of this (using testthat::skip_on_os() ). Everything is working as intended.

    But when I run my CI checks, codecov marks the “windows” lines as untested. My naive solution of running the codecov action on a windows runner is also not solving it.

    Any suggestions?

  29. Discover the power of property-based testing in R with the #quickcheck package! Seamlessly integrates with #testthat and offers a variety of generators for atomic vectors, lists, and tibbles. Perfect for ensuring your code's reliability. Check it out: github.com/armcn/quickcheck #rstats #rprogramming #testing

  30. Discover the power of property-based testing in R with the #quickcheck package! Seamlessly integrates with #testthat and offers a variety of generators for atomic vectors, lists, and tibbles. Perfect for ensuring your code's reliability. Check it out: github.com/armcn/quickcheck #rstats #rprogramming #testing

  31. Its good to have many tests in your R package, but it can be a pain to debug some failing tests when it happens. {lazytest} for the rescue: only rerun the failing tests, until they pass: lazytest.cynkra.com/ #RStats #testthat #lazy

  32. Its good to have many tests in your R package, but it can be a pain to debug some failing tests when it happens. {lazytest} for the rescue: only rerun the failing tests, until they pass: lazytest.cynkra.com/ #RStats #testthat #lazy

  33. Hive mind, do you employ (unit) testing in data analysis scripts? If so, how and what are your best practices?

    We frequently develop packages with unit testing. But equally often write "run-once" analysis scripts/notebooks. Those often contain functions and (more often) assumptions on loaded data but we rarely test/check these. This is something to improve but I wonder how others handle this.

    #RStats #rmarkdown #testthat #assertthat #python #jupyter #unittesting #datascience #bioinformatics

  34. Hive mind, do you employ (unit) testing in data analysis scripts? If so, how and what are your best practices?

    We frequently develop packages with unit testing. But equally often write "run-once" analysis scripts/notebooks. Those often contain functions and (more often) assumptions on loaded data but we rarely test/check these. This is something to improve but I wonder how others handle this.

    #RStats #rmarkdown #testthat #assertthat #python #jupyter #unittesting #datascience #bioinformatics

  35. Its good to have many tests in your R package, but it can be a pain to debug some failing tests when it happens. {lazytest} for the rescue: only rerun the failing tests, until they pass: lazytest.cynkra.com/ #RStats #testthat #lazy

  36. Its good to have many tests in your R package, but it can be a pain to debug some failing tests when it happens. {lazytest} for the rescue: only rerun the failing tests, until they pass: lazytest.cynkra.com/ #RStats #testthat #lazy

  37. Its good to have many tests in your R package, but it can be a pain to debug some failing tests when it happens. {lazytest} for the rescue: only rerun the failing tests, until they pass: lazytest.cynkra.com/ #RStats #testthat #lazy

  38. Its good to have many tests in your R package, but it can be a pain to debug some failing tests when it happens. {lazytest} for the rescue: only rerun the failing tests, until they pass: lazytest.cynkra.com/ #RStats #testthat #lazy

  39. Is it just me, or does {bit64} and {testthat} behave unexpectdly?

    In this example, {testthat} thinks that these two bit64::integer64 values are the same, and does not throw an error?

    A reproduction on someone else's machine would be welcomed!

    Is it because {testthat} is doing a comparison of the underlying floating point value, rather than using bit64's idea of equality?

    #RStats #testthat #bit