Unit Testing Approach VTK TDD

thank you for you response, it is very useful. Would It be possible to ask to be more specific?

would it be possible to receive some brief advise on how you might go about testing the sphere example. I would love to know via an example:

  • How many tests are you using for a small function such as draw_sphere?
  • Which parts of it you are focusing on testing.
  • Are you testing connection of VTK objects in your unit tests. Or would this come under integration tests. If so are these intergration tests included at the same time.
  • Are you only testing logic.
  • In order to test effectively would it be advised to split up the one large code in the sphere example, into smaller linked nested functions, in order to more effectively test, or is this necessary.
  • Do you test intermediate local variables with the function, or just the return output of that function.
  • If so, how do you make these locally define variables accessible to your tests class.

Many thanks in advance