Learn and Grow | Author Interviews | Book Summaries | Book lists | Summaries | Author Interviews | Shop Nonfiction books | Booklists | Non-fiction books | Book Reviews | Best Business Books | Best Management Books | Best Leadership Books | Best Business Strategy Books | Best Finance Books | Best Investment Books | Best History Books | Best World History Books | Best China History Books | Best India History Books | Best British India Books | Best American History Books | Best Science Books | Best Technology Books | Best Slavery Books | Best Economics Books | Best Macroeconomics Books | Best Health Books | Best Medicine History Books | Best Travel Books | Book Events | Author Events | Virtual Book Launch | Latest nonfiction books | Upcoming nonfiction books | Best University Presses | Harvard University Press | Yale University Press | Stanford University Press | Columbia University Press | Oxford University Press | Cambridge University Press | Chicago University Press | Pulitzer Prize | Recommended Books | Readara Book Experts | Readara Booklists | Readara Book summaries | Best Author Interviews | Best Nobel Prize Winners Books | Connect with Book Editors | Book Designers | Book Printers | Book Cover Designers | Best Book Agents List | Book PR and Marketing Agencies List | Book Wholesalers List Nonfiction books | Booklists | Non-fiction books | Book Reviews | Best Business Books | Best Management Books | Best Leadership Books | Best Business Strategy Books | Best Finance Books | Best Investment Books | Best History Books | Best World History Books | Best China History Books | Best India History Books | Best British India Books | Best American History Books | Best Science Books | Best Technology Books | Best Slavery Books | Best Economics Books | Best Macroeconomics Books | Best Health Books | Best Medicine History Books | Best Travel Books | Book Events | Author Events | Virtual Book Launch | Latest nonfiction books | Upcoming nonfiction books | Best University Presses | Harvard University Press | Yale University Press | Stanford University Press | Columbia University Press | Oxford University Press | Cambridge University Press | Chicago University Press | Pulitzer Prize | Recommended Books | Readara Book Experts | Readara Booklists | Readara Book summaries | Best Author Interviews | Best Nobel Prize Winners Books | Connect with Book Editors | Book Designers | Book Printers | Book Cover Designers | Best Book Agents List | Book PR and Marketing Agencies List | Book Wholesalers List | Book lists, Summaries, Author Interviews, Shop

Expedite your nonfiction book discovery process with Readara interviews, summaries and recommendations, Broaden your knowledge and gain insights from leading experts and scholars

In-depth, hour-long interviews with notable nonfiction authors, Gain new perspectives and ideas from the writer’s expertise and research, Valuable resource for readers and researchers

Optimize your book discovery process, Four-to eight-page summaries prepared by subject matter experts, Quickly review the book’s central messages and range of content

Books are handpicked covering a wide range of important categories and topics, Selected authors are subject experts, field professionals, or distinguished academics

Our editorial team includes books offering insights, unique views and researched-narratives in categories, Trade shows and book fairs, Book signings and in person author talks,Webinars and online events

Connect with editors and designers,Discover PR & marketing services providers, Source printers and related service providers

Test-Driven Development in Go: A practical guide to writing idiomatic and efficient Go tests through real-world examples

Test-Driven Development in Go: A practical guide to writing idiomatic and efficient Go tests through real-world examples

0Arrow Icon
Rate this book Arrow Icon

Key Metrics

  • Adelina Simion
  • Packt Publishing
  • Paperback
  • 9781803247878
  • 9.25 X 7.5 X 0.7 inches
  • 1.28 pounds
  • Computers > Languages - General
  • English
$0
List Price:
$0
Save:
$0 ($%)
Format:
Paperback
Shipping
$4
Ships from:
-
Estimated Arrival:
Aug 7 -Aug 11
Available Copies:
10+ Copies
Ready To Buy:
Add to Cart
Secure Icon Secure Transaction
Sold By:
Readara.com
Add to My Wishlist

Book Description

Explore Go testing techniques and leverage TDD to deliver and maintain microservices architecture, including contract, end-to-end, and unit testing

Purchase of the print or Kindle book includes a free PDF eBook


Key Features:

  • Write Go test suites using popular mocking and testing frameworks
  • Leverage TDD to implement testing at all levels of web applications and microservices architecture
  • Master the art of writing tests that cover edge cases and concurrent code



Book Description:

Experienced developers understand the importance of designing a comprehensive testing strategy to ensure efficient shipping and maintaining services in production. This book shows you how to utilize test-driven development (TDD), a widely adopted industry practice, for testing your Go apps at different levels. You'll also explore challenges faced in testing concurrent code, and learn how to leverage generics and write fuzz tests.

The book begins by teaching you how to use TDD to tackle various problems, from simple mathematical functions to web apps. You'll then learn how to structure and run your unit tests using Go's standard testing library, and explore two popular testing frameworks, Testify and Ginkgo. You'll also implement test suites using table-driven testing, a popular Go technique. As you advance, you'll write and run behavior-driven development (BDD) tests using Ginkgo and Godog. Finally, you'll explore the tricky aspects of implementing and testing TDD in production, such as refactoring your code and testing microservices architecture with contract testing implemented with Pact. All these techniques will be demonstrated using an example REST API, as well as smaller bespoke code examples.

By the end of this book, you'll have learned how to design and implement a comprehensive testing strategy for your Go applications and microservices architecture.


What You Will Learn:

  • Create practical Go unit tests using mocks and assertions with Testify
  • Build table-driven test suites for HTTP web applications
  • Write BDD-style tests using the Ginkgo testing framework
  • Use the Godog testing framework to reliably test web applications
  • Verify microservices architecture using Pact contract testing
  • Develop tests that cover edge cases using property testing and fuzzing


Who this book is for:

If you are an intermediate-level developer or software testing professional who knows Go fundamentals and is looking to deliver projects with Go, then this book is for you. Knowledge of Go syntax, structs, functions, and interfaces will help you get the most out of this book.

Test-Driven Development in Go: A practical guide to writing idiomatic and efficient Go tests through real-world examples

Videos

No Videos

Community reviews

Write a Review

No Community reviews