• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

daniel1noble / BACE / 25334583911
91%

Build:
DEFAULT BRANCH: main
Ran 04 May 2026 05:59PM UTC
Jobs 1
Files 15
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 May 2026 05:57PM UTC coverage: 76.272% (+0.3%) from 76.022%
25334583911

push

github

daniel1noble
Add validation/properties/build_functions tests + .build_formula source fix

Pushing toward the 1000-test / 90%-coverage target. After this commit:
  test PASS    : 538 -> 935  (+397 this commit set)
  coverage     : 74.4% -> 76.3%
  R CMD check  : 0 errors / 0 warnings / 0 notes

Three new test files:

tests/testthat/test-build_functions.R (39 tests):
  Covers .build_formula, .build_formula_string, .replace_symbols,
  .swap_symbols, .build_formula_string_random across both species
  modes. Includes a real source bug fix: .build_formula now accepts
  a formula object directly (previously errored with cryptic
  "the condition has length > 1" because as.character(formula) is
  vector-valued and the bare grepl-then-if test treated it as
  scalar). Also rejects numeric / NULL / multi-element-character
  inputs with the documented error message.

tests/testthat/test-validation.R (57 tests):
  Input-validation paths across the public API: bace_imp formula
  / phylo / data mismatches; assess_convergence type/method
  rejection; pool_posteriors + accessor wrong-class rejection;
  bace_options validation; .build_formula edge cases; sweep over
  generate_default_beta_matrix sparsity values; mnom_liab2cat /
  ordinal_liab2cat parameterised across K=2..6.

tests/testthat/test-properties.R (269 tests, mostly parameterised):
  Sweeps over many input combinations and asserts invariants:
    - sim_bace_* response shape/range across n_predictors 2..6
    - generate_default_beta_matrix lower-triangular over n=1..8
      x sparsity={0, 0.4, 0.8}
    - mnom_liab2cat: every category gets representation on large
      samples
    - ordinal_liab2cat: monotone in liability; extreme inputs land
      in extreme classes (with the test fixture set beyond the
      strict-> threshold so liab > top_threshold deterministically
      maps to top class)
    - bace_options round-trip across allowed values
    - .impute_levels: argmax/sample outputs always within declared
      level ... (continued)

6 of 6 new or added lines in 1 file covered. (100.0%)

2803 of 3675 relevant lines covered (76.27%)

63.02 hits per line

Jobs
ID Job ID Ran Files Coverage
1 25334583911.1 04 May 2026 05:59PM UTC 15
76.27
GitHub Action Run
Source Files on build 25334583911
  • Tree
  • List 15
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25334583911
  • 8ca03fd8 on github
  • Prev Build on main (#25334172491)
  • Next Build on main (#25334877583)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc