did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

We're the #1 textbook rental company. Let us show you why.

9780133564327

Database Unit Testing for SQL Server Using tSQLt

by ;
  • ISBN13:

    9780133564327

  • ISBN10:

    0133564320

  • Format: Paperback
  • Copyright: 2025-02-03
  • Publisher: Prentice Hall
  • Purchase Benefits
  • Free Shipping Icon Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • eCampus.com Logo Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $39.99 Save up to $0.20
  • Buy New
    $39.79
    Add to Cart Free Shipping Icon Free Shipping

    NOT YET PRINTED. PLACE AN ORDER AND WE WILL SHIP IT AS SOON AS IT ARRIVES.

Supplemental Materials

What is included with this book?

Summary

Using Test-Driven Development (TDD), thousands of agile developers are delivering software that is more rigorously tested, better designed, more robust, and easier to maintain. Until recently, however, database developers have been stymied by the unique characteristics of SQL code and the scarcity of useful tools. If you're an SQL Server developer who wants to use TDD, solutions now exist. In Database Unit Testing for SQL Server Using tSQLt , two pioneering database developers introduce those solutions and show you exactly how to apply them. Dennis Lloyd, Jr. and Sebastian Meine introduce their powerful new tSQLt open source unit testing framework for SQL Server, and show how to take full advantage of it.

 

Lloyd and Meine first explain the key TDD concepts that have made unit testing of non-database projects so effective, including isolating functions under test, using mocks to break up dependencies, and incrementally guiding designs. Next, they explain why these concepts haven't translated neatly to database development, and show how to overcome those disconnects. Then, building on this foundation, they introduce tSQLt and show you how to use it to create higher quality SQL Server code. Coverage includes:

  • Why TDD can be as valuable in database development as it is in object-oriented development
  • Writing effective unit tests for SQL Server T-SQL code
  • Quick, time-saving heuristics for identifying test cases
  • Advanced use cases for tSQLt and TDD
  • Applying TDD to new code
  • Refactoring existing database code through TDD
  • Integrating tSQLt and TDD with other development processes
  • Building and deploying databases in continuous improvement environments

 

Table of Contents

1 Introduction — Why unit testing in SQL Server is important and timely and why to use the Test-Driven approach

2 Using tSQLt to write Unit Tests
i Anatomy of a test
ii Isolating Dependencies

iii Advanced uses of tSQLt

3 Test Driven Design
i Understanding the benefits of TDD
ii Applying TDD to New Code
iii Legacy Code

4 How to fit this in with the rest of the app development process
i Continuous Integration
ii Team Building, Knowledge Sharing
iii Thin Slicing Features

5 Appendix
i Heuristics for identifying test cases

Supplemental Materials

What is included with this book?

The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.

The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.

Rewards Program