tskit-dev / tsbrowse

Utilities for evaluating inferred tree sequences
MIT License
3 stars 8 forks source link

Test suite #21

Closed jeromekelleher closed 1 year ago

jeromekelleher commented 1 year ago

We need to have some basic tests to make sure that the plots we're creating at least run.

We could do this by storing a few small example tsinfer output files (in tests/data) and running the various plots on these.

jeromekelleher commented 1 year ago

@benjeffery would you mind picking this up please?

We just want something super basic that runs each of the plots on a few toy tsinfer produced trees files. All we're testing is that the plots run initially (might get a bit more sophisticated later)

Would be nice to have files from a few versions of tsinfer, just to check that older files work (or at least be aware if they don't). Don't need to go way back, just versions associated with files we've made available on zenodo through the tsinfer and unified genealogy papers.

We can check the binaries into a tests/data directory.

Hopefully we can do something nice with pytest then to automate parameterizing over these?

jeromekelleher commented 1 year ago

Partially addressed in #37 where we start off the test suite. We'll still want to get small examples of different types of trees files in there, which we run the data export stuff on (at a minimum)