Closed dcaba closed 6 years ago
I've just added a fix we had pending: simple lock to prevent concurrent writes in the tcpserver we use for testing.. so I hope we have stable tests again!
I can merge. Or I can wait for your merge. If I merge, you may need to adapt something... but it may be useful given the refactors (so you ensure these tests do continue working... somehow :nerd_face: )
Adding test coverage for all reporting functions in this package.
However, worth to say: there's a public one (returns strings), then a private (similar, but just returns the metrics struct) and a helper function (std dev calculator). I find the tests for the first two functions are a bit overlapping/duplicated (it just changes the format), and we have the typical controversia of.. should we test private functions? See https://stackoverflow.com/questions/105007/should-i-test-private-methods-or-only-public-ones . In any case, here they are... overall test coverage will increase a lot!