Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-15301

[R] Discussion: move testthat test helpers to R/test-helpers.R

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • None
    • 9.0.0
    • R
    • None

    Description

      Would it make sense to have all custom expectations in R/ , maybe R/test-helpers.R ? Reasons:

      • edit(added on 12/01/2022): probably the most important point is these files are source by devtools::load_all() and, thus, helper functions are available interactively.
      • easier for newbies to read a file and figure out what custom testthat helpers we have
      • easier to document
      • respects the testthat author's suggestion to have them there

      Currently we have 17 different custom expectations, all defined in different files.
      A follow-up thought: maybe move all helpers there (is.as_compare_verify etc).

      Attachments

        Activity

          People

            Unassigned Unassigned
            dragosmg Dragoș Moldovan-Grünfeld
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: