Join us on a literary world trip!
Add this book to bookshelf
Grey
Write a new comment Default profile 50px
Grey
Subscribe to read the full book or read the first pages for free!
All characters reduced
Test-Driven Development in Go - A practical guide to writing idiomatic and efficient Go tests through real-world examples - cover

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

Adelina Simion

Publisher: Packt Publishing

  • 0
  • 0
  • 0

Summary

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.
Available since: 04/28/2023.
Print length: 342 pages.

Other books that might interest you

  • The Ultimate Guide To Understanding NFTs - cover

    The Ultimate Guide To...

    Steve Nico Williams

    • 0
    • 0
    • 0
    Want to grasp the full scope of the NFT landscape and its underlying principles? 
    It's possible to make more money with non-fungible tokens than with other coins or cryptocurrencies, but only if you know what you're doing. 
    If you have just heard about non-fungible tokens but know nothing about them, this book will teach you all you need to know to make money with them, achieve financial independence, and completely change your life. 
    By the time you're done with this guide, you'll be familiar with all there is to know about NFTs, from the ground up. This includes the ins and outs of NFTs, as well as how to use a wallet, trade, and store them. 
    By reading this book, you will discover:The concept behind the NFTs is all you need to know about non-fungible tokens, the blockchain, and smart contracts so that you may confidently navigate this exciting new industry.Fundamentals of NFTs, so you will understand the meaning of fungibility, the difference between fungible and non-fungible tokens, also the working process of fungible tokens, and their history of them.NFT & Digital Art will guide you to the worlds of digital arts and how to turn them into NFTs.NFT Marketplaces and Wallets, like OpenSea, Rarible or Nifty Gateway, you will learn about different NFT marketplaces. Wallets for NFTs are also covered in detail.Create, Buy and Sell NFTs, In this section, you will find instructions for making your own NFTs and transferring them to the appropriate location. Where to find them for sale by the artists who make them, how to advertise and market your NFT collection, and how to pick the best venue to sell your NFTs.The Future of NFTs, you will know the hurdles of adapting to the realm of NFTs and what future lies ahead.
    Show book
  • The Voyage of the Beagle - cover

    The Voyage of the Beagle

    Charles Darwin

    • 0
    • 0
    • 0
    The book, also known as Darwin's Journal of Researches, is a vivid and exciting travel memoir as well as a detailed scientific field journal covering biology, geology, and anthropology that demonstrates Darwin's keen powers of observation, written at a time when Western Europeans were still discovering and exploring much of the rest of the world. Although Darwin revisited some areas during the expedition, for clarity the chapters of the book are ordered by reference to places and locations rather than chronologically. With hindsight, ideas which Darwin would later develop into his theory of evolution by natural selection are hinted at in his notes and in the book (Summary from Wikipedia) 
    .
    Show book
  • The Mystery of Sleep - cover

    The Mystery of Sleep

    Scientific American

    • 0
    • 0
    • 0
    The reason we need sleep has long mystified scientists, but it’s crystal clear that we do need it. In fact, the more we learn about what happens while we snooze, the more we discover new benefits for multiple processes including hormone balance, immune function, emotional health, learning, and memory. Studies show that even one night of disturbed rest leads to measurable impairments, and for this minicollection, we’ve gathered the most recent research on the mechanisms of sleep.
    Show book
  • Options Trading for Beginners - Learn How to Trade and Invest Money with Big Profit! Thanks to Strategies Plan Risk and Time Management and Taking Advantages of Trading Psychology - cover

    Options Trading for Beginners -...

    MATTHEW R. HILL AND HENRY KRATTER

    • 0
    • 0
    • 0
    An informational book that deals mainly with options trading. It comprises an in-depth introduction to options and trading strategies that will be well-suited for those who are increasingly curious about options trading, as well as for those who want to invest money. 
    Is this your first time hearing about options and options trading? Do you want to know how to trade these options and the best strategies to be successful? If yes, this is the right book for you! 
    Options Trading for Beginners provides readers, both experts and those with no experience on the subject matter at all, with a comprehensive explanation and illustration on how options trading works. This makes it not only an excellent opportunity for newbies to learn about options, but also an excellent way to delve more in-depth on how to trade these options. 
    This guide is an opportunity for readers to capitalize on learning how to trade and invest money. It can be read from cover to cover or can also be used as a reference guide, with each subject consistently explained and illustrated to allow the reader to understand the world of options trading better and easier. The recurring theme of this material is to help not only those with some semblance of familiarity with options trading but those with zero knowledge of it at all as well. 
    ★★★This book covers:★★★Fundamentals and mechanics of optionsTrading strategiesHow to plan your tradesCommon mistakesShort and long-term investingRisk and time management 
    …And much more! 
    Provide yourselves with a copy of this useful book to have a basic handle on options trading!
    Show book
  • Drift Off to Sleep with Positive Thoughts and Emotions - Deep Sleep Hypnosis - cover

    Drift Off to Sleep with Positive...

    Institute of Sleep – Sleep Lab

    • 0
    • 0
    • 0
    Unleash the miracle within! This powerful sleep meditation is your key to unlocking the universe's abundance and manifesting your dreams. You'll:•Rewire your subconscious mind to attract miracles and positive experiences.•Release limiting beliefs that hold you back from what you desire.•Embrace the power of positive affirmations to solidify your intentions.•Cultivate an attitude of gratitude, opening yourself to miracles in all forms.•Align yourself with perfect timing, trusting that the universe delivers flawlessly.This is more than just positive thinking - it's a deep rewiring of your inner world to attract miracles.Are you ready to transform your nights and awaken to a life filled with miracles? Don't wait another moment! Dive into this life-changing sleep hypnosis audiobook now and start manifesting your dreams effortlessly. Click "Buy now" and let the journey to a miraculous life begin tonight!
    Show book
  • Towards a Prairie Atonement - cover

    Towards a Prairie Atonement

    Trevor Herriot

    • 0
    • 0
    • 0
    In the wake of colonization, in a landscape of loss and dispossession, can we rediscover ways to share the land with other creatures and one another?
    		 
    When the government recently tried to abandon its responsibility to protect what little remains of the natural prairie, Trevor Herriot pushed back, only to discover an injustice haunting the lands he was trying to defend. In 1938, when the Métis of Ste. Madeleine returned from working away, they found their homes burnt to the ground and their animals shot. The land they held in common was no longer theirs, but was now controlled by the federal government.
    		 
    Facing his own responsibility as a descendent of settlers, he connects today's ecological disarray to the legacy of Metis dispossession and the loss of their community lands. With Indigenous and settler people alienated from one another and from the grassland itself, hope and courage are in short supply. This book offers both by proposing an atonement that could again bring people and prairie together.
    Show book