Closed dneise closed 8 years ago
If you'd like to read up about Python unit testing, maybe this is a nice starting point:
That*s cool stuff. Will get around to this in the future.
We should use py.test, as this is used by ctapipe.
There is an introduction on unit testing for cta here: https://github.com/cta-observatory/training-material/blob/master/tutorials/UnitTests.ipynb
I implemented two first unit tests in #25, we can add more. I will see that we also start using travis for this project.
Travis is now running: https://travis-ci.org/cta-observatory/dragonboard_testbench
We also need unit tests for everything else, we e. g. use the dummy files to test the reading and offset calculation.
I close this, as the ci is setup and first tests there.
RunningStats
is pure math and therefore nicely decoupled and nicely testable. I think it needs to be unit tested quickly.Maybe this is a nice opportunity for people who have never written a unit test and would learn how this works...
The example below is one thing that should work but does not.