Thursday, May 4, 2017

Unit Testing


Hey guys,

today we want to show you our thoughts on testing.
We mentioned at the beginning of this project that we want to develop test-driven. This means testing before coding. Further information about this topic and its influence can be found in our test-document.

In this post you can also find some test code which was written for our triangles and their functions. Each test method was written before there was an implementation of the code. We have to admit that it was hard to follow our first idea of TDD at some points. But only if you can resist the pain its possible to become better and you will feel how your code becomes "better" in many cases without extraordinary work.

RUP Test Plan

Some Test code: TriangleTestCode | FieldTestCode

There are some example of a test showing the result:


working test
failed test












Thank you for visiting our blog,
TheLearningTriangle-Team

1 comment:

  1. Hey Guys,
    showing some screenshots is very good. So one can see your tests directly during work.
    Your test plan looks nice, but there aren't the test cases. Also some parts could be described a bit more.
    And what ist about automatic deployment as well as test coverage? I can find these topics..
    Yours, BestPlaces

    ReplyDelete