Home| All soft| Last soft| Your Orders| Customers opinion| Helpdesk| Cart

Program Search:


Shopping Cart:




*Note: Minimum order price: €20
We Recommend:
Pluralsight Unit Testing with Python €10 buy download

2013
pluralsight.com
Emily Bache
2h58m
English

This course follows on from the Pluralsight "Python Fundamentals" course, and has more detail about unit testing with Python. We will cover libraries and frameworks such as unittest, doctest and py.test. The aim is to help you to write unit tests that improve code quality, and also support future development. Good unit tests should provide immediate value in terms of reduced debugging and better design, and the investment writing them should pay back over the whole lifetime of your software.


Unit Testing with Python - Basic Example Using unittest
Course Overview
Module Overview
A first Test Case
Another test case, explanation of 'Test Runner'
A test case using assertRaises, explanation of 'Test Suite'
skip a test case, marking it Work In Progress
using setUp and tearDown - explanation of 'Test Fixture'
re-introduce the skipped test case, get it to pass.
test case design - test case names as specification.
Arrange - Act - Assert - Cleanup
unittest documentation.
module summary.
Why and When Should You Write Unit Tests?
Module Outline
Four reasons for unit testing
Understanding what to build
Documenting the Units
Designing the Units
Detecting Regression
Limitations of Unit Testing
Testing as part of your personal development process
Test Last
Test First
Test Driven
Continuous Integration
Module Review
Using Pytest for Unit Testing in Python
Module Outline
Motivation for looking at pytest
Defining and running a simple test case
Interpreting failure information
Asserting the contents of collections
Built-in helper functions - 'raises' and 'skip'
Adding a Test fixture by using '@pytest.fixture'
Using built-in test fixture resources - 'tmpdir'
Using pytest to run 'unittest' tests
Module Review
Testable Documentation with Doctest
Module Outline
What doctest is for, how it relates to unit testing
Documenting a simple method with docstring examples
Using different test runners to execute doctests
Handling failing doctests
Handling output that changes - dictionaries and floats
Testing for exceptions: including tracebacks in doctests
The ELLIPSIS directive: a wildcard for matching varying output
Putting doctest regression tests in a separate file
When to put doctests in a file, using approval testing
Doctest for checking tutorial documentation
Module Review
Test Doubles: Mocks, Fakes and Stubs
Module Outline
What is a Test Double?
Example using a Stub
Using unittest.mock to create a Stub
Stub example summary
Example using a Fake
Example using a Mock
Example using a Spy
Using unittest.mock to create a Spy and a Mock
Example using a Dummy Object
Choosing to use a particular kind of Test Double
Using Monkeypatching to insert a Test Double
Module Review
Test Coverage and Parameterized Tests
Module Outline
Using a custom assert to reduce duplication
Defining parameterized tests with unittest
Defining parameterized tests with pytest
Measuring coverage with pytest-cov
Measuring coverage of unittest tests
Using coverage data to add tests to legacy code
Good and bad uses for coverage metrics
Module Review

http://pluralsight.com/training/courses/TableOfContents?courseName=unit-testing-python



Download File Size:438.2 MB


Pluralsight Unit Testing with Python
€10
Customers who bought this program also bought:

Home| All Programs| Today added Progs| Your Orders| Helpdesk| Shopping cart      





Microsoft Office Pro 2021 €99

             

Microsoft Office 2021 for Mac €99






Autodesk 3DS MAX 2023 €75

             

Autodesk Inventor Professional 2023 €95






Orchestral Tools TIME micro KONTAKT €40


Steinberg HALion 6.4.0.101 STANDALONE €40


Native Instruments Komplete 12 Ultimate Collectors Edition €50