Gnuk / IceCreamForecasting-Refactoring-Kata

an exercise for getting awkward code under test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IceCream Refactoring Kata

Get the code under test. These functions display some or all of these properties which make the functions hard to test:

  • Missing Input
  • Side Effects
  • Non-deterministic

Suggested order to tackle it in:

  • Scorer
  • LongRangeForecasts
  • DailyForecasts

Address the factors that make them hard to test so that you end up testing pure functions.

Weather Service

Not every language version has code to use it (yet) but there is an actual Weather Service provided in the folder "weather_service". You should be able to run it with python like this:

cd weather_service
python -m pip install -r requirements.txt
cd src
python weather_service.py

About

an exercise for getting awkward code under test

License:MIT License


Languages

Language:Python 22.2%Language:Java 20.9%Language:C++ 15.6%Language:C# 14.8%Language:CMake 14.0%Language:PHP 7.3%Language:C 5.2%