GithubHelp home page GithubHelp logo

damszew / kata-emloyee-report Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 11 KB

Solution of `Employee report` kata in rust

License: MIT License

Dockerfile 19.22% Rust 80.78%
kata rust dojo employee-report

kata-emloyee-report's Introduction

About this Kata

This Kata was developed to show how overspecification of assertions harms maintainability of tests.

Problem Description

You’re building an employee management system of a local grocery store. The shop-owner wants to open the shop on Sunday and due to legal restrictions employees younger than 18 years are not allowed to work Sundays. The employee asks for a reporting feature so she can schedule work shifts. All employees are already stored somewhere and have the following properties:

  • name: string (the name of the employee)
  • age: number (the age in years of the employee)
[
  { "name": "Max", "age": 17 },
  { "name": "Sepp", "age": 18 },
  { "name": "Nina", "age": 15 },
  { "name": "Mike", "age": 51 },
]

Rules

Start with the first user-story and write at least one test for every requirement. Try not to look on future requirements upfront and follow the TDD-Cycle strictly.

  1. As shop owner I want to view a list of all employees, which are older than 18 years, so that I know who is allowed to work on Sundays.
  2. As shop owner I want the list of employees to be sorted by their name, so I can find employees easier.
  3. As shop owner I want the list of employees to be capitalized, so I can read it better.
  4. As shop owner I want the employees to be sorted by their names descending instead of ascending.

kata-emloyee-report's People

Contributors

damszew avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.