TestdrivenDevelopment

Legacy Code

Having automated unit tests as part of your project build is one important thing to ensure everything works as expected when doing changes on the code. Code is most probably the most changing thing during a project. So write JUnit tests, automate them and RUN when building code.

Test driven development

There is a programming technique which recommends to write tests before writing code. Watch the following video how this works.

Tools

  • Infinite testing: Running tests only during build is not convenient when doing refactoring step-by-step. Install the infinitest plugin to run JUnit tests automatically after saving.
  • Test coverage: Shows visually how much code is covered by tests. Goes down to method line depth

Metadata

Topic revision: r4 - 21 Jan 2013, EikeJuerrens
Legal Notice | Privacy Statement


This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Wiki? Send feedback