Test suite upgrade: testthat edition 3, coverage ≥ 80%, numerical validation
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
This is a multi-part test effort rather than one change. Start by running the existing suite with devtools::test() and reading tests/testthat/util_models_detfun.R, which the issue asks to rename to helper-models.R. Pick one exported function from the list, such as beta_params, and write a moment round-trip test with set.seed(). Done means that test passes, the edition-3 changes are applied to that file, and coverage for the function is reported by Codecov.
索引モデルが issue の本文から書いたものです。
説明
Suggested owner: Jorge Roa · Plan: Phase 2 (tests)
Goal
Tests that check numbers, not just that code runs. JOSS reviewers look for automated tests that confirm correctness.
Scope
- Move to testthat edition 3:
- Replace
context()andexpect_is()withexpect_s3_class(). - Rename
tests/testthat/util_models_detfun.Rtohelper-models.Rso it loads automatically.
- Replace
set.seed()in every stochastic test.- Add tests for exported functions that have none:
beta_params,gamma_params,lnorm_params,dirichlet_params(moment round-trips)number_ticks,print.icersplot.evppi,plot.evsiprint.metamodel,summary.metamodel- two-way
predict calc_evsi(n_by_param = TRUE)
- Numerical checks:
- ICERs against the Hunink textbook example (
hund_strat). - EVPI by hand from
cancer_psa_data. - EVPPI/EVSI with a fixed seed.
gen_psa_sampmoments for every distribution and parameterization, including truncated-normal, triangle, constant and bootstrap.
- ICERs against the Hunink textbook example (
- vdiffr snapshots for the main plots, with
skip_on_cran(). Pin the ggplot2 version noted in the snapshots.
Acceptance
- Codecov reports ≥ 80% line coverage.
- No test depends on unseeded randomness.
- CI passes on the 5-platform matrix.
- 主要言語
- R
- スター
- 43
- フォーク
- 14
- 平均マージ
- 4時間 44分
- マージ済み PR(30日)
- 15
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
DARTH-git/dampack のほかの issue
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
release
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
メンテナーはふだん 1 日以内に返信
-
documentation release
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
メンテナーはふだん 1 日以内に返信
-
documentation
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
メンテナーはふだん 1 日以内に返信
DARTH-git/dampack の issue をすべて見る
似ている issue
-
documentation priority: low
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
Pascal-Kueng/dyadMLM#179 ·
メンテナーはふだん 1 日以内に返信
-
Consider changesオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
OHDSI/OmopSketch#618 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
bug exec:agent status:fix-merged
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ichirio/rtfreporter#1046 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信