A Beginner's Guide
Buch, Englisch, 252 Seiten, Format (B × H): 155 mm x 235 mm, Gewicht: 411 g
ISBN: 979-8-8688-0305-5
Verlag: Apress
The book starts with an introduction to Pester, the powerful testing and mocking framework for PowerShell. You'll gain a solid foundation by exploring Pester's fundamental building blocks. The book guides you through the phases of Pester, helping you write your initial Pester code. You will dive into topics such as tags, assertions with Should and parameter filters, and you will explore advanced techniques such as Test Drive and Test Registry.
You will discover the art of mocking in Pester and master its advanced testing methodologies. You will gain insights into working without installed modules and seamlessly integrating Pester with Azure DevOps Pipeline for a streamlined testing process.
After reading this book, you will have the knowledge and skills to initiate your own exploration into PowerShell testing with Pester. You will transform your scripts into reliable powerhouses, ensuring the resilience and quality of your PowerShell code.What Will You Learn
- Building blocks and phases of Pester
- Writing effective Pester tests
- Assertions, mocking, and advanced testing techniques
- Integration with Azure DevOps
- Tags, code coverage
Who This Book Is For
PowerShell scripters and Pester Framework beginners
Zielgruppe
Professional/practitioner
Autoren/Hrsg.
Fachgebiete
Weitere Infos & Material
Chapter 1: Unveiling the Power of Pester.- Chapter 2: Mastering Pester Fundamentals.- Chapter 3: Writing Your First Tests.- Chapter 4: Mastering Block Scope in Pester.- Chapter 5: Data-Driven Tests.- Chapter 6: Navigating the Pester Phases: Discovery and Run.- Chapter 7: Test Drive and Test Registry.- Chapter 8: Tags and Invoke-Pester.- Chapter 9: Mocking.- Chapter 10: Code Coverage.- Chapter 11: Integrating Pester with Azure DevOps Pipeline.- Chapter 12: Examples.