Test suite upgrade: testthat edition 3, coverage ≥ 80%, numerical validation
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 18/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- R
- Stelle
- 43
- Fork
- 14
- Merge medio
- 4h 44m
- PR unite (30g)
- 15
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di DARTH-git/dampack
-
documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
release
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
I maintainer di solito rispondono entro 1 giorno
-
documentation release
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
I maintainer di solito rispondono entro 1 giorno
-
documentation
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di DARTH-git/dampack
Issue simili
-
documentation priority: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
Pascal-Kueng/dyadMLM#179 ·
I maintainer di solito rispondono entro 1 giorno
-
Consider changesAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
OHDSI/OmopSketch#618 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
-
bug exec:agent status:fix-merged
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
ichirio/rtfreporter#1046 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno