Growing Object-Oriented Software, Guided by Tests

av Steve Freeman, Nat Pryce  (häftad, 2009)

Pris:  298:-
Skickas inom 7-10 vardagar.
Fri frakt inom Sverige för privatpersoner vid beställning på minst 99 kr!
  • Välj format:
  • E-bok
  • Häftad

Passar bra ihop

Growing Object-Oriented Software, Guided by Tests + The Clean Coder: A Code Of Conduct For Professional Programmers
De som köpt den här boken har ofta också köpt The Clean Coder: A Code Of Conduct For Professional Programmers (häftad) av Robert C Martin
Pris för båda:


Bli först att betygsätta och recensera boken .

Fler böcker inom
  • Häftad (paperback)
  • Språk: Engelska
  • Antal sidor: 384
  • Utg.datum: 2009-10-26
  • Upplaga: 1
  • Medarbetare: Pryce, Nat
  • Illustrationer: illustrations
  • Dimensioner: 234 x 177 x 20 mm
  • Vikt: 500 g
  • Antal komponenter: 1
  • ISBN: 9780321503626

Bloggat om

Övrig information

Steve Freeman s an independent consultant specialising in the Agile delivery of software. A pioneer of Agile software development in the UK, he has built applications for banks, ISPs, financial data providers, and specialist software companies. Steve is a developer of the jMock and nMock libraries. Nat Pryce is an independent consultant with expertise in software design, software development process and practices. He is also a research fellow at Imperial College. Nat is a developer of the jMock and nMock libraries for test-driven development.


Foreword     xv

Preface     xvii

Acknowledgments     xxi

About the Authors     xxiii




Chapter 1: What Is the Point of Test-Driven Development?     3

Software Development as a Learning Process     3

Feedback Is the Fundamental Tool     4

Practices That Support Change     5

Test-Driven Development in a Nutshell     6

The Bigger Picture     7

Testing End-to-End     8

Levels of Testing     9

External and Internal Quality     10


Chapter 2: Test-Driven Development with Objects     13

A Web of Objects     13

Values and Objects     13

Follow the Messages     14

Tell, Dont Ask     17

But Sometimes Ask     17

Unit-Testing the Collaborating Objects     18

Support for TDD with Mock     19


Chapter 3: An Introduction to the Tools     21

Stop Me If Youve Heard This One Before     21

A Minimal Introduction to JUnit 4     21

Hamcrest Matchers and assertThat()     24

jMock2: Mock Objects     25




Chapter 4: Kick-Starting the Test-Driven Cycle     31

Introduction     31

First, Test a Walking Skeleton     32

Deciding the Shape of the Walking Skeleton     33

Build Sources of Feedback     35

Expose Uncertainty Early     36


Chapter 5: Maintaining the Test-Driven Cycle     39

Introduction     39

Start Each Feature with an Acceptance Test     39

Separate Tests That Measure Progress from Those That Catch Regressions     40

Start Testing with the Simplest Success Case     41

Write the Test That Youd Want to Read     42

Watch the Test Fail     42

Develop from the Inputs to the Outputs     43

Unit-Test Behavior, Not Methods     43

Listen to the Tests     44