Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up testing framework #3

Open
tompollard opened this issue Jun 6, 2016 · 4 comments
Open

Set up testing framework #3

tompollard opened this issue Jun 6, 2016 · 4 comments

Comments

@tompollard
Copy link
Member

We should set up a testing framework for the code in this repo.

@jraffa
Copy link
Contributor

jraffa commented Jun 6, 2016

What would we be testing for exactly?

I ask because it might be hard to test without the original data. Some chapters will have generic functions, but others will not.

@tompollard
Copy link
Member Author

What would we be testing for exactly?

I was thinking mainly of unit tests. e.g. are the functions returning the results that we think they are returning? When we make changes to the code or when dependencies change, this will help to make sure things don't break. Pete also notes that his sections could do with testing in his pull request.

I ask because it might be hard to test without the original data.

Yep, this does add an extra level of complication for some tests. If data is a requirement for a test, we could run the tests on our local Jenkins server or we could make a demo dataset available. I agree that getting complete coverage will be tricky, and the range of languages doesn't help either. I'm only familiar with Python testing frameworks, so will need to investigate R and Matlab.

@peterhcharlton
Copy link
Contributor

I agree. To answer these two questions, I would suggest that for Section 3:

where possible, all case studies should be reproducible using publicly available data and code.

i.e. we should be testing for reproducibility, and we should be using the original data. All the Section 3 chapters use either MIMIC (II or III), or simulated data. Therefore, the data used in each chapter are publicly available. I can't comment on whether or not this is the case for other Sections.

@tompollard
Copy link
Member Author

tompollard commented Jun 7, 2016

Thanks Pete, I agree that it would be great to add some tests to check that the complete studies return expected results. We can try to do the same thing for section 2 too. It'll take us a while, but the nice thing about having the code here is that we can continue to tidy it up over time.

tompollard added a commit that referenced this issue Jun 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants