How to start my first TDD project?

152 views Asked by At

I was given a task to create a project on Django. It is pretty much simple and straightforward, but it's my first task on Django and TDD driven, that is why it has difficulties for me. I have read a lot about TDD on wiki and Django portal, but still do not know how to start.

Simplified models:

  • Skill
    1. Description
  • Student
    1. Description
    2. Skills
  • Project
    1. Task
    2. Description
    3. Students

I need to show information about projects, students and skills. Skills should be like tags: after click show students with that skill. Please help me to start to write my first tests: which unit test should be the first, which questions should I ask myself to create further tests, how small should they be, and so on.

1

There are 1 answers

1
jvc26 On

I'd start by doing the django tutorial and then apply the lessons learnt to your project above.

That will give you the starting blocks for the models, and in the final part, an introduction to TDD.