Skip to content

Commit

Permalink
Added unit tests from README (#15)
Browse files Browse the repository at this point in the history
* Added `src/.gitignore`

* Added test skeleton

Literally the output of `usethis::use_testthat()`

* Added README as test script (#13)

* Restyled file

Output of `styler::style_file()`.

* Added unit tests (solves #13)

* Added gcno files to .gitignore

* Added `inst/doc` to .gitignore

Those are generated files that get removed whenever `devtools::check()` is ran.

* Finished writing tests for #13

* Sped up #13 tests 3x

* Resolved TODO, suppressed output on test (#13)

* Reinstated test with `MRF.G = FALSE` (#13)

This is necessary for `func_MCMC_graph()` to be called and work on #11 to continue.

* Added test for `MRF.G = FALSE` (closes #13)

* Relaxed unit test expectations

So checks passes on macOS
  • Loading branch information
wleoncio authored Jun 21, 2024
1 parent ad6a2ef commit 3e5e1a1
Show file tree
Hide file tree
Showing 8 changed files with 120 additions and 660 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ BayesSurv/src/symbols.rds
BayesSurv/src/Makevars
BayesSurv/BayesSurv.Rcheck/*
BayesSurv.Rcheck/*
*.gcno
inst/doc

BayesSurv/autom4te.cache
BayesSurv/build
BayesSurv/hyperpar.xml

*.tar.gz
*.log
*.status
*.status
5 changes: 4 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ RoxygenNote: 7.3.1
LinkingTo: Rcpp, RcppArmadillo (>= 0.9.000)
Imports: Rcpp, ggplot2, GGally, mvtnorm, survival, riskRegression,
utils, stats
Suggests: knitr
Suggests:
knitr,
testthat (>= 3.0.0)
LazyData: true
NeedsCompilation: yes
Packaged: 2024-06-05 07:00:29 UTC; zhiz
Expand All @@ -28,3 +30,4 @@ Author: Zhi Zhao [aut, cre],
Manuela Zucknick [ctb],
Jörg Rahnenführer [ctb]
Maintainer: Zhi Zhao <[email protected]>
Config/testthat/edition: 3
4 changes: 0 additions & 4 deletions inst/doc/BayesCox.R

This file was deleted.

165 changes: 0 additions & 165 deletions inst/doc/BayesCox.Rmd

This file was deleted.

Loading

0 comments on commit 3e5e1a1

Please sign in to comment.