Python for decision makers and business leaders Transcripts
Chapter: Testing
Lecture: Continuous integration

Login or purchase this course to watch this video and the rest of the course contents.
0:00 Python pairs well with Continuous Integration.
0:03 Are you familiar with this term, this concept?
0:04 Continuous Integration is an automated system.
0:07 It watches your source code repository for changes.
0:10 Any changes detected there
0:11 so basically code saved back to the project
0:15 it will automatically get that latest version
0:18 run it through various tests.
0:20 For example, if it was C++, you would have to compile
0:24 and link that code and then do some other stuff.
0:26 Python doesn't have this compilation stuff.
0:28 And the reason it's in the testing chapter
0:30 is that makes the testing part even more important.
0:34 With compile languages
0:35 the compiler verifies every single bit
0:38 of the syntax clues together.
0:40 This function says it takes an integer
0:42 and over here you are yes in fact passing an integer.
0:44 If you were to pass it something else
0:46 it would fail the compilation step.
0:48 Python doesn't compile so there is no compilation step.
0:51 So when the only way you have to verify those types
0:53 of things is just run it
0:55 and the best way to run it in Continuous Integration
0:57 is well, you guessed it
0:59 to write a test, probably with Pytest
1:01 that will have the same effect
1:03 as well as checking the logical bits
1:05 that you're trying to check.
1:06 So if you want to have reliable software
1:08 and you want to do Continuous Integration
1:10 or even better, Continuous Delivery
1:12 check into a certain branch, it passes it automatically
1:15 'cause it's deployed to the web server or wherever
1:17 you really need to have tests because without tests
1:20 you haven't verified very much about Python.