Upgrade to testthat 3e
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from r-lib/cpp11
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
games-on-whales/wolf#509 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
bug-unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
NVIDIA/cuda-samples#453 ·