Register to get access to free programming courses with interactive exercises

Tests Key Aspects of Web Development in Python

As an application grows, it becomes increasingly difficult to make changes. It is mainly due to dependencies. One module depends on another, which depends on the piece of data. You change one part, and all the changes cascade through all the dependent modules.

Of course, the degree of impact depends on how well you designed the project. But in any case, there is one golden rule, the bigger the project, the more connections and dependencies there'll be, and the more difficult it will be to change things.

The only effective way to check if everything is good is through automated tests. You've probably noticed that Hexlet automatically checks all the exercises. These are the same kind of automatic tests. Often tests are written before the code, which is the case with Hexlet. The tests are there, but you still have to write the code. This approach allows you to check the performance of the required code quickly.

Automated testing is a pretty big topic that no professional developer can avoid. The sooner you learn how to write tests, the better you'll become as an expert and the more reliable your code will be. But writing tests is a whole story. We designed Hexlet courses in such a way as to influence you to open test files and analyze their code. The more often you do this, the better. If you do not know what to do, look at the tests.

Writing tests (especially pre-code) is part of a methodology called XP or extreme programming. It includes best practices to help you write quality code. Here is a list of them:

  • Testing
  • The planning game
  • The customer is always nearby
  • Pair programming
  • Continuous integration
  • Refactoring
  • Frequent small releases
  • Easy design
  • System metaphor
  • Code design standards

Are there any more questions? Ask them in the Discussion section.

The Hexlet support team or other students will answer you.

About Hexlet learning process

For full access to the course you need a professional subscription.

A professional subscription will give you full access to all Hexlet courses, projects and lifetime access to the theory of lessons learned. You can cancel your subscription at any time.

Get access
130
courses
1000
exercises
2000+
hours of theory
3200
tests

Sign up

Programming courses for beginners and experienced developers. Start training for free

  • 130 courses, 2000+ hours of theory
  • 1000 practical tasks in a browser
  • 360 000 students
By sending this form, you agree to our Personal Policy and Service Conditions

Our graduates work in companies:

<span class="translation_missing" title="translation missing: en.web.courses.lessons.registration.bookmate">Bookmate</span>
<span class="translation_missing" title="translation missing: en.web.courses.lessons.registration.healthsamurai">Healthsamurai</span>
<span class="translation_missing" title="translation missing: en.web.courses.lessons.registration.dualboot">Dualboot</span>
<span class="translation_missing" title="translation missing: en.web.courses.lessons.registration.abbyy">Abbyy</span>
Suggested learning programs
profession
new
Developing web applications with Django
10 months
from scratch
under development
Start at any time

Use Hexlet to the fullest extent!

  • Ask questions about the lesson
  • Test your knowledge in quizzes
  • Practice in your browser
  • Track your progress

Sign up or sign in

By sending this form, you agree to our Personal Policy and Service Conditions
Toto Image

Ask questions if you want to discuss a theory or an exercise. Hexlet Support Team and experienced community members can help find answers and solve a problem.