Test-driven Python development : develop high-quality and maintainable Python applications using the principles of test-driven development
Uloženo v:
Hlavní autor: | |
---|---|
Médium: | Kniha |
Jazyk: | angličtina |
Vydáno: |
Birmingham ; Mumbai :
Packt Publishing,
2015
|
Edice: | Community experience distilled
|
Žánr/forma: | příručky |
ISBN: | 978-1-78398-792-4 |
Témata: | |
Tagy: |
Přidat tag
Žádné tagy, Buďte první, kdo otaguje tento záznam!
|
LEADER | 03439nam a2200385 i 4500 | ||
---|---|---|---|
001 | 000970469 | ||
003 | CZ PrSTK | ||
005 | 20161116131946.0 | ||
008 | 160922s2015 xxka f 001 0 eng d | ||
020 | |a 978-1-78398-792-4 |q (brožováno) | ||
040 | |a ABA013 |b cze |e rda | ||
044 | |a xxk |a ii | ||
050 | 4 | |a QA76.73.P98 |b G68 2015 | |
072 | 7 | |a 004.4/.6 |x Programování. Software |2 Konspekt |9 23 | |
080 | |a 004.438(035) |2 MRF | ||
080 | |a 004.415.53(035) |2 MRF | ||
100 | 1 | |a Govindaraj, Siddharta |7 ntk2016933332 | |
245 | 1 | 0 | |a Test-driven Python development : |b develop high-quality and maintainable Python applications using the principles of test-driven development / |c Siddharta Govindaraj |
250 | |a First published | ||
264 | 1 | |a Birmingham ; |a Mumbai : |b Packt Publishing, |c 2015 | |
300 | |a xi, 239 stran : |b ilustrace | ||
336 | |a text |b txt |2 rdacontent | ||
337 | |a bez média |b n |2 rdamedia | ||
338 | |a svazek |b nc |2 rdacarrier | ||
490 | 1 | |a Community experience distilled | |
500 | |a Obsahuje rejstřík | ||
505 | 0 | |a Table of Contents Preface____________________________________________________________________vii Chapter 1 Getting Started with Test-Driven Development_1 -- Prerequisites -- Understanding test-driven development -- TDD versus unit testing versus integration testing -- Using TDD to build a stock alert application -- Writing our first test -- Analyzing the test output -- Test errors versus test failures -- Making the test pass -- Reorganizing the test code -- Running the tests after the reorganization -- Summary -- Chapter 2 Red-Green-Refactor - The TDD Cycle__17 -- Tests are executable requirements -- Arrange-Act-Assert -- Documenting our tests -- Testing for exceptions -- Exploring assert methods -- Specific asserts versus generic asserts -- Setup and teardown -- Brittle tests -- Refactoring the design -- Refactoring tests -- Exploring the Rule classes -- Exercise -- Summary -- Table of Contents Chapter 3 Code Smells and Refactoring_______41 -- A dual crossover moving average -- Implementing the dual crossover moving average -- Identifying code smells -- Refactoring -- The Rename Variable and Rename Method refactorings -- Commenting Styles -- Replace Magic Literals with Constants -- The Extract Method refactoring -- Replace Calculation with Temporary Variable -- Extract Conditional to Method -- The DRY principle -- Single Responsibility Principle -- Extract Class -- Move Method to Class -- The importance of tests -- Exercise -- Wrapping up -- Summary -- Chapter 4 Using Mock Objects to Test Interactions_71 -- Hand writing a simple mock -- Using the Python mocking framework -- Mocking objects -- Mocking return values -- Mocking side effects -- How much mocking is too much -- Mocks versus stubs versus fakes versus spies -- Patching methods -- An important gotcha when patching -- Tying it all together -- Summary -- Chapter 5 Working with Legacy Code_99 -- What is legacy code -- Understanding the code -- What are characterization tests -- Using the Python interactive | |
655 | 7 | |a příručky |7 fd133209 |2 czenas | |
690 | |a Python | ||
650 | 0 | 7 | |a programovací jazyk Python |x vt |7 psh13861 |2 psh |
650 | 0 | 7 | |a testování |x vt |7 psh12571 |2 psh |
650 | 0 | 7 | |a software |x vt |7 psh12463 |2 psh |
830 | 0 | |a Community experience distilled | |
910 | |a ABA013 |b A 52235 | ||
996 | |a STK |b 2660517508 |c 1289/2016 |d 20161110 |f 988.00 |g A 52235 |v QA76 .73 .P98 G68 2015 |l 6.NP, regál 6D/026 |t 03 |0 K |