SlideShare a Scribd company logo
Automated testing in Python and beyond Brenda Wallace Production Engineer, Weta Digital
Unit Tests Unit Testing is testing of individual program "units" in relative isolation
Wah? What they are
Input -> expected output
That's a test
Glorified If/Else statements if (stuff happens as expected): OK! else: Fail.
Python unit  tests class testMyCode(unittest.TestCase): def test_Stuff(self): a = MyDataProcessingThing(5) self.assertEqual(a.blah, 9)
Python Pass, fail, coverage
Super Powers Massive refactors, and know they worked
Wanna try something wickedly clever?  Do code change quickly
instantly see if it works for all 1,000 of your use cases
Confidence Debugging is fast
Find bugs elsewhere
Blame.
You look GOOD.
More Python Nose!
Logging capture
STDOUT capture
Running single tests
Disney pythoscope

More Related Content

PDF
TDD in Python With Pytest
PDF
Python Testing Fundamentals
ODT
Testing in-python-and-pytest-framework
PDF
Modern Python Testing
PDF
C++ Unit Test with Google Testing Framework
ODP
Python unit testing
PPT
20111018 boost and gtest
PPTX
Unit Testing with Python
TDD in Python With Pytest
Python Testing Fundamentals
Testing in-python-and-pytest-framework
Modern Python Testing
C++ Unit Test with Google Testing Framework
Python unit testing
20111018 boost and gtest
Unit Testing with Python

What's hot (19)

PPT
Google mock for dummies
PPT
Google C++ Testing Framework in Visual Studio 2008
PDF
Software Engineering - RS3
KEY
Unit Test Your Database
DOCX
Test driven development and unit testing with examples in C++
PDF
Cursus phpunit
PPT
Stopping the Rot - Putting Legacy C++ Under Test
PPT
Unit Testing RPG with JUnit
PPT
Automated Unit Testing
PDF
Unit testing legacy code
PPT
Presentation_C++UnitTest
PPTX
TDD in Go with Ginkgo and Gomega
PDF
Clean Unit Test Patterns
PPTX
Refactoring legacy code driven by tests - ENG
PPT
RPG Program for Unit Testing RPG
PDF
Unit testing, principles
PDF
How and what to unit test
PDF
Writing good unit test
PPTX
Interpreter RPG to Java
Google mock for dummies
Google C++ Testing Framework in Visual Studio 2008
Software Engineering - RS3
Unit Test Your Database
Test driven development and unit testing with examples in C++
Cursus phpunit
Stopping the Rot - Putting Legacy C++ Under Test
Unit Testing RPG with JUnit
Automated Unit Testing
Unit testing legacy code
Presentation_C++UnitTest
TDD in Go with Ginkgo and Gomega
Clean Unit Test Patterns
Refactoring legacy code driven by tests - ENG
RPG Program for Unit Testing RPG
Unit testing, principles
How and what to unit test
Writing good unit test
Interpreter RPG to Java
Ad

Similar to Automated testing in Python and beyond (20)

PPTX
Introduction to unit testing in python
PDF
PresentationqwertyuiopasdfghUnittest.pdf
PDF
Write unit test from scratch
PPTX
unittestinginpythonfor-PYDevelopers.pptx
PDF
Quality of life through Unit Testing
PPTX
2.Python_Unit _Testing_Using_PyUnit_Pytest.pptx
PPTX
1.Python_Testing_Using_PyUnit_Pytest.pptx
PDF
Python and test
PDF
Testing Django Applications
PPTX
Upstate CSCI 540 Unit testing
PDF
Unit Testing in Software Development: Why It Matters and How to Do It Right
PDF
The Future is Now: Writing Automated Tests To Grow Your Code
PDF
Presentation on Unit Test with Python and Pytest
PDF
Python testing like a pro by Keith Yang
PDF
DSR Testing (Part 1)
PDF
Token Testing Slides
PPTX
Unit testing and mocking in Python - PyCon 2018 - Kenya
PDF
Test your code
PPTX
Standard Libraries in Python Programming
PPTX
Django strategy-test
Introduction to unit testing in python
PresentationqwertyuiopasdfghUnittest.pdf
Write unit test from scratch
unittestinginpythonfor-PYDevelopers.pptx
Quality of life through Unit Testing
2.Python_Unit _Testing_Using_PyUnit_Pytest.pptx
1.Python_Testing_Using_PyUnit_Pytest.pptx
Python and test
Testing Django Applications
Upstate CSCI 540 Unit testing
Unit Testing in Software Development: Why It Matters and How to Do It Right
The Future is Now: Writing Automated Tests To Grow Your Code
Presentation on Unit Test with Python and Pytest
Python testing like a pro by Keith Yang
DSR Testing (Part 1)
Token Testing Slides
Unit testing and mocking in Python - PyCon 2018 - Kenya
Test your code
Standard Libraries in Python Programming
Django strategy-test
Ad

More from dn (8)

PDF
Code quality; patch quality
 
PDF
How does this code work?
 
PDF
Python worst practices
 
ODP
Struggling to find an open source business model
 
PDF
Testing in those hard to reach places
 
PDF
Behaviour Driven Development and Thinking About Testing
 
ODP
Patterns in Python
 
PDF
Spotlight on Python
 
Code quality; patch quality
 
How does this code work?
 
Python worst practices
 
Struggling to find an open source business model
 
Testing in those hard to reach places
 
Behaviour Driven Development and Thinking About Testing
 
Patterns in Python
 
Spotlight on Python
 

Recently uploaded (20)

PPTX
Cloud computing and distributed systems.
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Electronic commerce courselecture one. Pdf
PDF
KodekX | Application Modernization Development
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
cuic standard and advanced reporting.pdf
PDF
Approach and Philosophy of On baking technology
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
Cloud computing and distributed systems.
Programs and apps: productivity, graphics, security and other tools
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
NewMind AI Weekly Chronicles - August'25 Week I
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Unlocking AI with Model Context Protocol (MCP)
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Electronic commerce courselecture one. Pdf
KodekX | Application Modernization Development
Network Security Unit 5.pdf for BCA BBA.
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
cuic standard and advanced reporting.pdf
Approach and Philosophy of On baking technology
Building Integrated photovoltaic BIPV_UPV.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Reach Out and Touch Someone: Haptics and Empathic Computing

Automated testing in Python and beyond