giabaio / BCEA

Bayesian Cost Effectiveness Analysis. Given the results of a Bayesian model (possibly based on MCMC) in the form of simulations from the posterior distributions of suitable variables of costs and clinical benefits for two or more interventions, produces a health economic evaluation. Compares one of the interventions (the "reference") to the others ("comparators"). Produces many summary and plots to analyse the results
https://gianluca.statistica.it/software/bcea/
GNU General Public License v3.0
40 stars 16 forks source link

Package tests #8

Open seabbs opened 4 years ago

seabbs commented 4 years ago

It can really help users trust a package if it has robust testing, external validation and code reports. There are some great R packages (as I am sure you are aware) like {testthat} for unit testing code and {vdiffr} for testing plots.

Running tests externally (i.e with travis as set up here) can be really nice + a code coverage report can then be generated.

Very happy to help get this set up and start adding some tests!

Linked to #6

giabaio commented 4 years ago

Again --- I do think that BCEA is fairly robust, as it's been continuously tested and developed for quite some time now (I did start while I was working on one of my papers, back in 2007/8!). BUT, no reason why we shouldn't move towards more advanced & modern methods, so again --- happy to discuss!

seabbs commented 4 years ago

I imagine it is! Do you have some unofficial testing framework in place? How do you currently check that changes don't introduce bugs/issues?

Unit testing is beneficial for development purposes (do new features break old features etc.) + shows that the package is following best practices and so can be quickly assessed for trustworthiness by users (not saying this is the only way but it is the standard).

Would you be happy for me to add the base testing and code coverage framework but a few outline tests? Adding full package tests may be a relatively big job and some tests will probably need your input as you know the package best.

If you were interested in a JOSS review (and passing community best practices etc) this would be required.

giabaio commented 4 years ago

I'm absolutely happy to move towards that and if you're willing to do so, happy for you to take the lead on the development version!

n8thangreen commented 1 year ago

closed e.g. bfe87f84122bfc483eb504f68f80f946c710a8fb