It is my first attempt at testing my JSON handling code:
1 2 3 4 5 6 7 |
|
Needless to say it is pretty bad, for the following reasons:
It has an external dependency of a local server. It is strictly speaking not a unit test
The code does not work. It is likely because the run loop is not started when the unit test runs
My TODO:
Refactor the above code to be a proper unit test
Use functional testing framework to implement the above test