Test suite upgrade: testthat edition 3, coverage ≥ 80%, numerical validation
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 18/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- R
- Star
- 43
- Fork
- 14
- Merge trung bình
- 4 giờ 44 phút
- Pull request đã merge (30 ngày)
- 15
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của DARTH-git/dampack
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Release dampack 1.1.0 to CRANĐang mởrelease
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation release
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của DARTH-git/dampack
Issue tương tự
-
documentation priority: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Pascal-Kueng/dyadMLM#179 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Consider changesĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
OHDSI/OmopSketch#618 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
-
bug exec:agent status:fix-merged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
ichirio/rtfreporter#1046 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày