/
fully-test-driven-django-with-selenium-part-1.json
33 lines (33 loc) · 3.84 KB
/
fully-test-driven-django-with-selenium-part-1.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
"alias": "video/1249/fully-test-driven-django-with-selenium-part-1",
"category": "EuroPython 2012",
"copyright_text": "Standard YouTube License",
"description": "tl; dr: The concept: run through the official Django tutorial, but with\nfull TDD Includes browser-based testing with Selenium, using the new\nWebDriver API In-depth unit-testing, including the Django Test Client\nand tools like Mock Discussions of TDD philosophy: what to test, what\nnot to test, how to test http://www.tdd-django-tutorial.com/\n`https://github.com/hjwp/Test-Driven-Django-Tutorial <https://github.com/hjwp%20/Test-Driven-Django-Tutorial>`__\ncome prepared! you\u2019ll need git, firefox, python2.7, django1.4 and\nselenium installed. Fully Test-Driven Django with Selenium AKA \u201cThe\nDjango Pony vs The Testing Goat\u201d This tutorial is aimed primarily at\npeople who want to learn about one or many of: Django Selenium\nTest-Driven-Development So it\u2019s aimed at beginners of one kind or\nanother \u2013 if you are already well versed in all three, then you may not\nget much out of it. The idea is to run through the steps covered by the\nofficial Django tutorial, covering the essentials of Django from a\nbeginner\u2019s point of view. However, at each stage, instead of \u201cjust\u201d\nwriting the Django code required to build our site, we first write\ntests. And we don\u2019t just write unit tests! We start by writing\n\u201cfunctional\u201d or \u201cacceptance\u201d tests, using Selenium - which means driving\na real browser, and checking the actual behaviour of the site as it is\nrendered, from the user\u2019s point of view. Why should you listen to me, I\nhear you ask? Well, I was lucky enough to get my first \u201cproper\u201d software\ndevelopment job about two years ago with a bunch of Extreme Programming\nfanatics, who\u2019ve thoroughly inculcated me into their cult of Test-Driven\ndevelopment. Believe me when I say I\u2019m contrary enough to have\nquestioned every single practice, challenged every single decision,\nmoaned about every extra minute spent doing \u201cpointless\u201d tests instead of\nwriting \u201cproper\u201d code. But I\u2019ve come round to the idea now, and whenever\nI\u2019ve had to go back to some of my old projects which don\u2019t have tests,\nboy have I ever realised the wisdom of the approach. So, I\u2019ve learnt\nfrom some really good people, and the learning process is still fresh in\nmy mind, and most importantly, I still have the passion of a recent\nconvert! Pre-requisites Come with the following pre- installed on your\nlaptop please: Git Firefox Python 2.7 setuptools/easy\\_install/pip then:\npip install django pip install selenium pip install mock PS - I don\u2019t\nhave a preview of my TDD talk, but there is one video of me giving a\nlightning talk at last year\u2019s Pycon UK. It\u2019s on a totally different\ntopic, but it gives a hit of my \u201cdynamic\u201d presentation \u201cskills\": -\n`https://www.youtube.com/watch?v=e6NLAbgmRZ4 <https://www.youtube.com/watch?v=e%206NLAbgmRZ4>`__\n",
"duration": null,
"id": 1249,
"language": "eng",
"quality_notes": "",
"recorded": "2012-07-06",
"related_urls": [
"http://www.tdd-django-tutorial.com/",
"https://github.com/hjwp%20/Test-Driven-Django-Tutorial",
"https://github.com/hjwp/Test-Driven-Django-Tutorial",
"https://www.youtube.com/watch?v=e%206NLAbgmRZ4",
"https://www.youtube.com/watch?v=e6NLAbgmRZ4"
],
"slug": "fully-test-driven-django-with-selenium-part-1",
"speakers": [
"H Percival"
],
"summary": "[EuroPython 2012] H Percival - 5 JULY 2012 in \"Pizza Napoli\"\n",
"tags": [],
"thumbnail_url": "https://i.ytimg.com/vi/WfyoC0h9QKA/hqdefault.jpg",
"title": "Fully Test-driven Django with selenium part 1",
"videos": [
{
"length": 0,
"type": "youtube",
"url": "https://www.youtube.com/watch?v=WfyoC0h9QKA"
}
]
}