product
657405Test-Driven Development in Gohttps://www.gandhi.com.mx/test-driven-development-in-go/phttps://gandhi.vtexassets.com/arquivos/ids/689772/6ec046a8-da63-431c-9e8e-89494964e008.jpg?v=638335811315900000591657MXNPackt PublishingInStock/Ebooks/654958Test-Driven Development in Go591657https://www.gandhi.com.mx/test-driven-development-in-go/phttps://gandhi.vtexassets.com/arquivos/ids/689772/6ec046a8-da63-431c-9e8e-89494964e008.jpg?v=638335811315900000InStockMXN99999DIEbook20239781803235028_W3siaWQiOiJhZjU2YzQ3Yi1lODQ3LTRkMTEtYjFlMy05NTM2MzBhNjg5NWMiLCJsaXN0UHJpY2UiOjY1NywiZGlzY291bnQiOjY2LCJzZWxsaW5nUHJpY2UiOjU5MSwiaW5jbHVkZXNUYXgiOnRydWUsInByaWNlVHlwZSI6Ildob2xlc2FsZSIsImN1cnJlbmN5IjoiTVhOIiwiZnJvbSI6IjIwMjQtMDQtMDhUMTY6MDA6MDBaIiwicmVnaW9uIjoiTVgiLCJpc1ByZW9yZGVyIjpmYWxzZX1d9781803235028_<p><strong>Learn about the Go testing fundamentals and techniques to leverage Test-Driven Development, (TDD) for delivering and maintaining microservice architectures, including unit testing, end-to-end testing, and contract testing.</strong></p><h4>Key Features</h4><ul><li>Write Go test suites using popular mocking and assertion frameworks</li><li>Leverage TDD to implement end-to-end testing of HTTP web applications and microservice architectures</li><li>Master testing and debugging techniques for suites that cover edge cases and concurrent code</li></ul><h4>Book Description</h4><p>Experienced developers know that designing a comprehensive testing strategy is vital to shipping and maintaining services in production. This book teaches you to leverage TDD, which is already an industry practice, for testing your Go applications at different levels. In addition, one chapter discusses the challenges and approaches of testing concurrent code, which requires different techniques for testing and profiling.</p><p>Youll use TDD to solve and test a variety of problems, from simple mathematical functions to web applications. Youll learn how to structure and run your unit tests, and what assertion frameworks are available for you to use. Youll implement test suites using table-driven testing, which is a common technique used in Go. Then, youll write and run Behavior-Driven Development (BDD) style tests. Youll learn more complex topics that require end-to-end testing with mocking and contract testing via practical examples. Finally, youll explore the difficult aspects of implementing and running TDD in production. Youll come across the challenges of testing concurrent code and fuzzing.</p><p>By the end of this book, youll design and implement a comprehensive testing strategy for your Go applications and microservice architectures.</p><h4>What you will learn</h4><ul><li>Understand the benefits and techniques of TDD</li><li>Create practical Go unit tests using mocks and assertions</li><li>Build table-driven test suites for HTTP web applications</li><li>Use Cucumber to reliably test web applications end-to-end</li><li>Verify microservice architectures using contract testing</li><li>Write and test Go concurrency mechanisms efficiently</li><li>Develop useful tests that cover edge cases using property testing and fuzzing</li><li>Learn effective debugging strategies for non-deterministic test failures</li></ul><h4>Who This Book Is For</h4><p>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.</p><h4>Table of Contents</h4><ol><li>Getting to Grips with Test-Driven Development</li><li>Unit Testing Essentials</li><li>Mocking and assertion frameworks</li><li>Building efficient test suites</li><li>Performing End-to-end testing</li><li>Testing the book swap web application</li><li>Refactoring in Go</li><li>Testing microservice architectures</li><li>Challenges of testing concurrent code</li><li>Testing edge cases</li><li>Working with Generic test utilities</li><li>Debugging intermittent test failures</li></ol>...(*_*)9781803235028_<p><strong>Explore Go testing techniques and leverage TDD to deliver and maintain microservices architecture, including contract, end-to-end, and unit testing</strong></p><p><strong>Purchase of the print or Kindle book includes a free PDF eBook</strong></p><h4>Key Features</h4><ul><li>Write Go test suites using popular mocking and testing frameworks</li><li>Leverage TDD to implement testing at all levels of web applications and microservices architecture</li><li>Master the art of writing tests that cover edge cases and concurrent code</li></ul><h4>Book Description</h4><p>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. Youll also explore challenges faced in testing concurrent code, and learn how to leverage generics and write fuzz tests.</p><p>The book begins by teaching you how to use TDD to tackle various problems, from simple mathematical functions to web apps. Youll then learn how to structure and run your unit tests using Gos standard testing library, and explore two popular testing frameworks, Testify and Ginkgo. Youll also implement test suites using table-driven testing, a popular Go technique. As you advance, youll write and run behavior-driven development (BDD) tests using Ginkgo and Godog. Finally, youll 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.</p><p>By the end of this book, youll have learned how to design and implement a comprehensive testing strategy for your Go applications and microservices architecture.</p><h4>What you will learn</h4><ul><li>Create practical Go unit tests using mocks and assertions with Testify</li><li>Build table-driven test suites for HTTP web applications</li><li>Write BDD-style tests using the Ginkgo testing framework</li><li>Use the Godog testing framework to reliably test web applications</li><li>Verify microservices architecture using Pact contract testing</li><li>Develop tests that cover edge cases using property testing and fuzzing</li></ul><h4>Who this book is for</h4><p>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.</p>...9781803235028_Packt Publishinglibro_electonico_4942ceea-5b32-3075-b44f-79115523d4df_9781803235028;9781803235028_9781803235028Adelina SimionInglésMéxicohttps://getbook.kobo.com/koboid-prod-public/packt-epub-6b3285fe-c3b2-4526-9255-e5a1cd91ab20.epub2023-04-28T00:00:00+00:00Packt Publishing