Тёмный

Martin Angelov - Proper Django Testing 

EuroPython Conference
Подписаться 33 тыс.
Просмотров 1,4 тыс.
50% 1

Proper Django Testing
[EuroPython 2018 - Talk - 2018-07-26 - Lammermuir]
[Edinburgh, UK]
By Martin Angelov
I'm currently working in a Django project, We have a lot of tests (~ 2000) and a fair amount of code coverage currently. The system and the requirements of the client grows everyday (like in every other project these days). I've convinced that the effort we put in making each of these tests pays off daily.
Speaking with other Django and Python developers I've noticed that people often "overengineer" their unit tests and they usually tend to break their principles.
In this presentation I will talk mainly about unit tests. - what packages we use and how and when to use them (properly). We will take a look on how we structure our projects and how this structure actually helps us write proper unit tests. I will start with the very basic tests and continue with the mocking technique. In the end I'm going to refer to other testing methods (integration, E2E, validation testing, visual regression, etc.).
The goal of this talk is to make people better in testing and to show them how these skills will fasten the development process and help them maintain their project and it's quality.
License: This video is licensed under the CC BY-NC-SA 3.0 license: creativecommons.org/licenses/...
Please see our speaker release agreement for details: ep2018.europython.eu/en/speak...

Наука

Опубликовано:

 

29 авг 2018

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 7   
@nikitakurabtsev1222
@nikitakurabtsev1222 2 года назад
Thank you Martin.
@mishikookropiridze
@mishikookropiridze 3 года назад
Service in Django is bad idea.
@user-pj2rb9fw2e
@user-pj2rb9fw2e 3 года назад
why service is bad for django? i just want to know. because i'm studying service now. :(
@ruslanuchan8880
@ruslanuchan8880 Год назад
Yeah, I really want to know too :(
@mishikookropiridze
@mishikookropiridze Год назад
@@ruslanuchan8880 Search for Against service layers in Django - James Bennet
@ruslanuchan8880
@ruslanuchan8880 Год назад
@@mishikookropiridze Thanks for replying! I'll check it out!
@ruslanuchan8880
@ruslanuchan8880 Год назад
@@user-pj2rb9fw2e Anyway, there's the link if you're still looking (just want to tag)
Далее
Lynn Root - asyncio in Practice: We Did It Wrong
29:51
Просмотров 3,5 тыс.
CPython Core Developer Panel
1:07:53
Просмотров 891
Django #15 - tests
18:00
Просмотров 2,8 тыс.
iPhone 15 Pro в реальной жизни
24:07
Просмотров 405 тыс.