drbenvincent / darc_toolbox

Run adaptive decision making experiments
MIT License
16 stars 2 forks source link

sort out tests #13

Closed drbenvincent closed 5 years ago

drbenvincent commented 5 years ago

At the moment I've got a strange ad hoc mixture of python scripts which I use to debug (using MS Visual Studio Code) and some unit tests (using unittest). The debugging and stepping through code is very handy, but I've not figured out how to do that in MS VS Code yet.

And I'm not convinced that unittest is the best way forward. It might be that pytest is simpler.

Tests

Models

Designs

drbenvincent commented 5 years ago

Decision: move forward with pytest

drbenvincent commented 5 years ago

Have made a pretty good start. Picked up pytest relatively quickly, got some nice parameterised tests going on. Got some good unit-level tests of models and designs going on.

As of now, we have 48 passing, 3 failing tests. We'll deal with this in another issue. For now, we have achieved the objective of laying down a good initial spread of unit tests.