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

Christoph999 picture Christoph999  路  4Comments

jennybc picture jennybc  路  16Comments

scottkosty picture scottkosty  路  7Comments

unDocUMeantIt picture unDocUMeantIt  路  11Comments

vspinu picture vspinu  路  6Comments