You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 20, 2020. It is now read-only.
This Kata was developed to show how overspecification of assertions harms maintainability of tests.
12
+
A blog post with a possible solution can be found here: https://dev.to/webpapaya/writing-better-test-assertions-lml
13
+
14
+
**Problem Description**
15
+
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:
16
+
17
+
- name: string (the name of the employee)
18
+
- age: number (the age in years of the employee)
19
+
20
+
```js
21
+
constemployees= [
22
+
{ name:'Max', age:17 },
23
+
{ name:'Sepp', age:18 },
24
+
{ name:'Nina', age:15 },
25
+
{ name:'Mike', age:51 },
26
+
];
27
+
```
28
+
29
+
**Rules**
30
+
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.
31
+
32
+
- 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.
33
+
- As shop owner I want the list of employees to be sorted by their name, so I can find employees easier.
34
+
- As shop owner I want the list of employees to be capitalized, so I can read it better.
35
+
- As shop owner I want the employees to be sorted by their names descending instead of ascending.
0 commit comments