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

Unit tests #4

Open
ageorgou opened this issue May 25, 2017 · 0 comments
Open

Unit tests #4

ageorgou opened this issue May 25, 2017 · 0 comments

Comments

@ageorgou
Copy link
Owner

ageorgou commented May 25, 2017

A suite of unit tests should be written for the framework (preferably using unittest pytest). At the first instance, this should include:

  • checking that the number of species and observables is correctly identified
  • checking that the size and shape of the loaded observations is correct (number of observation files, length of time series, number of observables)
  • checking that the stoichiometry matrix is correctly constructed
  • checking that various expressions are correctly parsed and (for kinetic laws) mapped to appropriate functions

These should be verified against a standard model, probably one of the examples already included. Further tests could:

  • check that appropriate warnings/errors are generated when observations are misspecified or when an unsuitable algorithm is chosen
  • compare the behaviour of the simulator or the inference engine with expected results [this requires more consideration to ensure good coverage and meaningful comparisons]
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

1 participant