Skip to content

Latest commit

 

History

History
139 lines (102 loc) · 6.24 KB

README.md

File metadata and controls

139 lines (102 loc) · 6.24 KB

Gradle Maven CMake Go Pytest Npm Check Markdown links Add contributors

Game of Life

Kata Image
"Color Coded Race Track" by Simpsons contributor is licenced under is licenced under Wikimedia Commons

Description

Available here

What is Bottom-up and Top-down TDD?

Bottom-up style is when you build a brick outside your main acceptance test flow and only later integrate it with the rest of the program. On the contrary, Top-down style is when you only work on the code that is covered by the acceptance or high level tests.

In order to experiment full bottom-up style start the kata with 10 minutes of up-front design and come up with the different 'bricks' you will need to solve the problem. Then use the bottom-up way to solve the kata:

  1. Write an acceptance test, and comment it
  2. Test drive the implementation of each brick
  3. Using all the bricks, test drive the implementation of the main function
  4. Uncomment and pass your acceptance test

Note: Bottom-up / Top-down are also known as Inside-out / Outside-in

The pros of Bottom-up TDD?

  • It lets you work in small steps
  • It tends to result in more reusable and robust bricks

The cons of Bottom-up TDD?

  • There is a risk that the brick does not integrate well with the main code, leading to a lot of rework. Then a good recommendation is to integrate the brick as soon as possible in the main code.
  • Creating a robust brick is often more work than necessary for the current acceptance test

Getting Started

Session Quick Retrospective

You can fill it from here

Useful Links

For this Kata

General

Session Information

Style & Duration

Topic

  • Bottom-up TDD

Focus Points

  • Test readability
  • Teamwork
  • ⚠ YAGNI

Source Files

License

Kata-GameOfLife and the accompanying materials are made available under the terms of the MIT License which accompanies this distribution, and is available at the Open Source site

Acknowledgements

See ACKNOWLEDGEMENTS.md for more information.

Contributors

Damien
Damien Menanteau
Ahmad
Ahmad Atwi
Philippe
Philippe Bourgau
AntoineMx/
AntoineMx