You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unit tests are implemented for each bit of the code. For simple methods, these test the full functionality (is the result returned the correct one). For complex ones --- i.e. the central algorithms in samplers and optimisers --- these mostly test the API (does the result have the right shape, are errors thrown for incorrect input). Simpler parts of sampler & optimiser classes should still be tested, e.g. does get_x() return the value passed in with set_x().
PINTS has 100% unit test coverage and PRs can only be merged if they maintain this ratio.
This ticket is an attempt to summarise the cross-repo stuff that's been happening with testing in PINTS.
See also this project
There are different aspects to testing PINTS.
Old stuff, probably best deleted
The text was updated successfully, but these errors were encountered: