Testthat: FR: Run tests in parallel

Created on 21 Jun 2016  ·  3Comments  ·  Source: r-lib/testthat

to speed up TDD.

  • One task per context
  • Need special care to avoid mixing output

    • Can be achieved by making reporter$cat() collect all output and print it in reporter$.end_context()

  • Can use the "parallel" package for simplicity

    • Some backends need to load the package and the helpers on each node

feature reporter

Most helpful comment

It would be important to allow some tests to "opt-out" of parallel testing, such as those that are already using parallelism internally.

All 3 comments

Just a thought: Being able to opt out for some tests might be good.(unless testthat is only intended for use with unit tests and excludes integration tests)

It would be important to allow some tests to "opt-out" of parallel testing, such as those that are already using parallelism internally.

Hi, what needs to be done to get this (or similar) accepted? I think it would be a great addition.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dchudz picture dchudz  ·  5Comments

lc0 picture lc0  ·  8Comments

mjsteinbaugh picture mjsteinbaugh  ·  7Comments

louis-vines picture louis-vines  ·  6Comments

BroVic picture BroVic  ·  3Comments