The Art of Unit Testing
eBook - ePub

The Art of Unit Testing

with examples in C#

Roy Osherove

  1. 292 páginas
  2. English
  3. ePUB (apto para móviles)
  4. Disponible en iOS y Android
eBook - ePub

The Art of Unit Testing

with examples in C#

Roy Osherove

Detalles del libro
Índice
Citas

Información del libro

Summary The Art of Unit Testing, Second Edition guides you step by step from writing your first simple tests to developing robust test sets that are maintainable, readable, and trustworthy. You'll master the foundational ideas and quickly move to high-value subjects like mocks, stubs, and isolation, including frameworks such as Moq, FakeItEasy, and Typemock Isolator. You'll explore test patterns and organization, working with legacy code, and even "untestable" code. Along the way, you'll learn about integration testing and techniques and tools for testing databases and other technologies. About this Book You know you should be unit testing, so why aren't you doing it? If you're new to unit testing, if you find unit testing tedious, or if you're just not getting enough payoff for the effort you put into it, keep reading. The Art of Unit Testing, Second Edition guides you step by step from writing your first simple unit tests to building complete test sets that are maintainable, readable, and trustworthy. You'll move quickly to more complicated subjects like mocks and stubs, while learning to use isolation (mocking) frameworks like Moq, FakeItEasy, and Typemock Isolator. You'll explore test patterns and organization, refactor code applications, and learn how to test "untestable" code. Along the way, you'll learn about integration testing and techniques for testing with databases.The examples in the book use C#, but will benefit anyone using a statically typed language such as Java or C++.Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications. What's Inside

  • Create readable, maintainable, trustworthy tests
  • Fakes, stubs, mock objects, and isolation (mocking) frameworks
  • Simple dependency injection techniques
  • Refactoring legacy code


About the Author Roy Osherove has been coding for over 15 years, and he consults and trains teams worldwide on the gentle art of unit testing and test-driven development. His blog is at ArtOfUnitTesting.com. Table of Contents
PART 1 GETTING STARTED

  • The basics of unit testing
  • A first unit test
  • PART 2 CORE TECHNIQUES
  • Using stubs to break dependencies
  • Interaction testing using mock objects
  • Isolation (mocking) frameworks
  • Digging deeper into isolation frameworks
  • PART 3 THE TEST CODE
  • Test hierarchies and organization
  • The pillars of good unit tests
  • PART 4 DESIGN AND PROCESS
  • Integrating unit testing into the organization
  • Working with legacy code
  • Design and testability

Preguntas frecuentes

¿Cómo cancelo mi suscripción?
Simplemente, dirígete a la sección ajustes de la cuenta y haz clic en «Cancelar suscripción». Así de sencillo. Después de cancelar tu suscripción, esta permanecerá activa el tiempo restante que hayas pagado. Obtén más información aquí.
¿Cómo descargo los libros?
Por el momento, todos nuestros libros ePub adaptables a dispositivos móviles se pueden descargar a través de la aplicación. La mayor parte de nuestros PDF también se puede descargar y ya estamos trabajando para que el resto también sea descargable. Obtén más información aquí.
¿En qué se diferencian los planes de precios?
Ambos planes te permiten acceder por completo a la biblioteca y a todas las funciones de Perlego. Las únicas diferencias son el precio y el período de suscripción: con el plan anual ahorrarás en torno a un 30 % en comparación con 12 meses de un plan mensual.
¿Qué es Perlego?
Somos un servicio de suscripción de libros de texto en línea que te permite acceder a toda una biblioteca en línea por menos de lo que cuesta un libro al mes. Con más de un millón de libros sobre más de 1000 categorías, ¡tenemos todo lo que necesitas! Obtén más información aquí.
¿Perlego ofrece la función de texto a voz?
Busca el símbolo de lectura en voz alta en tu próximo libro para ver si puedes escucharlo. La herramienta de lectura en voz alta lee el texto en voz alta por ti, resaltando el texto a medida que se lee. Puedes pausarla, acelerarla y ralentizarla. Obtén más información aquí.
¿Es The Art of Unit Testing un PDF/ePUB en línea?
Sí, puedes acceder a The Art of Unit Testing de Roy Osherove en formato PDF o ePUB, así como a otros libros populares de Ciencia de la computación y Programación en C#. Tenemos más de un millón de libros disponibles en nuestro catálogo para que explores.

Información

Editorial
Manning
Año
2013
ISBN
9781638353058

Índice

    Estilos de citas para The Art of Unit Testing

    APA 6 Citation

    Osherove, R. (2013). The Art of Unit Testing ([edition missing]). Manning Publications. Retrieved from https://www.perlego.com/book/2682635/the-art-of-unit-testing-pdf (Original work published 2013)

    Chicago Citation

    Osherove, Roy. (2013) 2013. The Art of Unit Testing. [Edition missing]. Manning Publications. https://www.perlego.com/book/2682635/the-art-of-unit-testing-pdf.

    Harvard Citation

    Osherove, R. (2013) The Art of Unit Testing. [edition missing]. Manning Publications. Available at: https://www.perlego.com/book/2682635/the-art-of-unit-testing-pdf (Accessed: 25 September 2021).

    MLA 7 Citation

    Osherove, Roy. The Art of Unit Testing. [edition missing]. Manning Publications, 2013. Web. 25 Sept. 2021.