دسترسی نامحدود
برای کاربرانی که ثبت نام کرده اند
برای ارتباط با ما می توانید از طریق شماره موبایل زیر از طریق تماس و پیامک با ما در ارتباط باشید
در صورت عدم پاسخ گویی از طریق پیامک با پشتیبان در ارتباط باشید
برای کاربرانی که ثبت نام کرده اند
درصورت عدم همخوانی توضیحات با کتاب
از ساعت 7 صبح تا 10 شب
ویرایش: [3 ed.]
نویسندگان: Jeff Langr
سری: The Pragmatic Programmers
ISBN (شابک) : 9798888651032
ناشر: Pragmatic Bookshelf
سال نشر: 2024
تعداد صفحات: 290
[291]
زبان: English
فرمت فایل : PDF (درصورت درخواست کاربر به PDF، EPUB یا AZW3 تبدیل می شود)
حجم فایل: 5 Mb
در صورت تبدیل فایل کتاب Pragmatic Unit Testing in Java with JUnit به فرمت های PDF، EPUB، AZW3، MOBI و یا DJVU می توانید به پشتیبان اطلاع دهید تا فایل مورد نظر را تبدیل نمایند.
توجه داشته باشید کتاب آزمایش واحد عملی در جاوا با Junit نسخه زبان اصلی می باشد و کتاب ترجمه شده به فارسی نمی باشد. وبسایت اینترنشنال لایبرری ارائه دهنده کتاب های زبان اصلی می باشد و هیچ گونه کتاب ترجمه شده یا نوشته شده به فارسی را ارائه نمی دهد.
Cover Table of Contents Foreword The More Things Change… Acknowledgments Preface Why Unit Testing Who This Book Is For What You Need How This Book Is Organized Code and Online Resources Test-Driven Development (TDD) Coding Style Part I—Unit Testing Foundations 1. Building Your First JUnit Test Reasons to Write a Unit Test Learning JUnit Basics: Your First Testing Challenge Writing a First Real Test Dealing with Failure Moving On to a One-Based Test: Something’s Happening! Increasing Your ROI: Cleaning Up Tests ZOM: Zero and One Done, Now Testing Many Covering Other Cases: Creating a Test List Congratulations!…But Don’t Stop Yet 2. Testing the Building Blocks Units A Wee Bit Bigger Than a Unit? Concepts as Building Blocks Testing the Simpler Things Verifying Side Effects Testing Common Code Circumstances Exploring Boundaries with CORRECT Summary 3. Using Test Doubles A Testing Challenge Replacing Troublesome Behavior with Stubs Changing Your Design to Support Testing Adding Smarts to Your Stub: Verifying Parameters Simplifying Testing Using a Mock Tool Injecting Mocks with Mockito Verifying a Method Was Called…or Not Testing Exception Handling Fast Tests A Mélange of Important Test Double Tips Summary 4. Expanding Your Testing Horizons Improving Unit Testing Skills Using Code Coverage Testing Multithreaded Code Writing Integration Tests Exploratory Unit Testing Summary Part II—Mastering JUnit with “E”s 5. Examining Outcomes with Assertions Using the Core Assertion Forms Assertion Messages: Redundant Messages for Assertions Other Common JUnit Assertion Forms Expecting Exceptions Assert That Nothing Happened: assertDoesNotThrow Alternate Assertion Approaches Third-Party Assertion Libraries Eliminating Non-Tests Summary 6. Establishing Organization in JUnit Tests The Parts of an Individual Test Setting Up and Tearing Down Using Lifecycle Methods Organizing Related Tests into Nested Classes Avoiding Dependency Despair: Don’t Order Your Tests! Executing Multiple Data Cases with Parameterized Tests Summary 7. Executing JUnit Tests Testing Habits: What Tests to Run Creating Arbitrary Test Groups Using Tags Temporarily Disabling Tests with @Disabled Exploring More Features Summary Part III—Increasing ROI: Unit Testing and Design 8. Refactoring to Cleaner Code A Little Bit o’ Refactor Finding Better Homes for Your Methods Removing Temporaries of Little Value Amplifying the Core Intent of Code Are You Kidding Me? Addressing Concerns over Performance Final Cleanup Summary 9. Refactoring Your Code’s Structure The Profile Class and the SRP Extracting a New Class Command-Query Separation The Costs of Maintaining Unit Tests Summary 10. Streamlining Your Tests Tests as Documentation Searching for an Understanding Test Smell: Legacy Code Constructs Test Smell: Unnecessary Test Code Test Smells: Generalized and Stepwise Assertions Test Smell: Missing Abstractions Test Smell: Bloated Construction Test Smell: Multiple Assertions Test Smell: Irrelevant Details in a Test Test Smell: Misleading Organization Test Smell: Implicit Meaning Adding Tests from Your Test List Summary Part IV—Bigger Topics Around Unit Testing 11. Advancing with Test-Driven Development (TDD) The Primary Benefit of TDD Starting Simple Increment 1: Deferring Complexity Increment 2: Generalizing the Implementation Increment 3: Factoring Out Redundancies Increment 4: Introducing a Test Double Test-Driven Development vs. Test-After Development The Rhythm of TDD Summary 12. Adopting Team Practices Coming up to Speed Getting on the Same Page with Your Team Practicing Continuous Integration Summary 13. Keeping AI Honest with Unit Tests AI Isn’t Going Away Exploring a Simple Example with ChatGPT Establishing a Java Standard Providing Examples to ChatGPT Telling Your LLM to Clean Up Its Act Adding a New Feature: Suffixes Getting the LLM to Do Final Design Cleanup For Extra Credit Increasing Odds of Success with AI-Generated Code Will I Go Faster? Summary Bibliography Index – SYMBOLS – – A – – B – – C – – D – – E – – F – – G – – H – – I – – J – – L – – M – – N – – O – – P – – Q – – R – – S – – T – – U – – V – – W – – Y – – Z –