ScottishCovidResponse / SCRCIssueTracking

Central issue tracking repository for all repos in the consortium
6 stars 0 forks source link

Investigate what unit tests can be added #556

Open ianhinder opened 4 years ago

ianhinder commented 4 years ago

Since the code has not been written with unit testing in mind, it might be hard to test the core functionality. Regarding technologies, EERA uses Google Test but I've read good things about Catch.

github-actions[bot] commented 4 years ago

Heads up @chrispooley @ianhinder - the "CoronaPMCMC" label was applied to this issue.

ianhinder commented 4 years ago

I've used Catch2 in the data pipeline, and quite liked it. I'll probably add it to BEEPmbp. We can then start adding tests for some of the functions which are easier to test to get into the swing of it, and then once we start refactoring, we can add tests for the relevant functionality.

ianhinder commented 4 years ago

I've added code tests in https://github.com/ScottishCovidResponse/BEEPmbp/pull/16.