Upgrade to testthat 3e

Open
#402 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Stale
Tech stack
r
Domain
testing-qa

Research direction

Start with tests/testthat/test-utils.R and tests/testthat/test-vendor.R, then inspect the other tests using describe(..., it(...)) style. Migrate the tests to testthat 3e and remove the {mockery} dependency; done means the test suite passes without that dependency.

Written by the indexing model from the issue text.

Description

I was aiming to send along a PR dropping the {mockery} dependency but it's a bit of a bigger project than at first glance despite the small footprint of {mockery}:

https://github.com/r-lib/cpp11/blob/dc93fb84f482c2ac93b5578fee955c75a40b093f/tests/testthat/test-utils.R#L28
https://github.com/r-lib/cpp11/blob/dc93fb84f482c2ac93b5578fee955c75a40b093f/tests/testthat/test-vendor.R#L4

Because currently {cpp11} uses a lot of describe(..., it(...)) style tests that require more lift to move to 3e.

Filing this issue as an earmark that it would be something nice to have.

Dominant language
C++
Stars
224
Forks
52
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from r-lib/cpp11

All issues in r-lib/cpp11

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.