Having some unit tests will help prevent mistakes like mine reported here: #2 (comment)
It would be good if we had some test data with which to test parsing regexes. We should try and get as much of a spread as possible, across different OS's and ping versions (although I suppose it's unlikely that the output will change much, it'd be good to test).
As a minimum, it would be good to have examples for:
- successful ping (0% packet loss)
- some packet loss (~50%)
- total packet loss (no response)
- non-existent domain
- no route to host.
across multiple OS types and ping versions.
Having some unit tests will help prevent mistakes like mine reported here: #2 (comment)
It would be good if we had some test data with which to test parsing regexes. We should try and get as much of a spread as possible, across different OS's and ping versions (although I suppose it's unlikely that the output will change much, it'd be good to test).
As a minimum, it would be good to have examples for:
across multiple OS types and ping versions.