Kata 1: Sanity First

Kata 1: Sanity First

The App

SmartFashion is a clothes store. It has an API which can be used by their own website or other websites they have partnered with, hence the need for the API.

The API is basically a CRUD (Create, Read, Update, Delete) API.

Basic Clients can:

  • Search for items
  • Buy items

Admin Clients can also:

  • Add items
  • Remove items
  • Update items

Problem Statement

The problem statement is short and sweet. Create a full suite of Sanity Tests for the above app. You can read more about Sanity Tests in the Best Practices: Structuring Your Tests article.


You only get one clue for this Kata:

Highlight the text below to reveal the clue:

  • Only assert that each API operation completes. For now, we don’t care too much about the content of the responses or business workflows.