- عنوان کتاب: Practical Front-End Testing
- نویسنده: Hsin-Hao Tang
- حوزه: توسعه فرانت
- سال انتشار: 2025
- تعداد صفحه: 265
- زبان اصلی: انگلیسی
- نوع فایل: pdf
- حجم فایل: 3.67 مگابایت
این کتاب به هشت فصل تقسیم شده است:
— شروع کار با تست: نگاهی عمیق به مفاهیم اساسی، تکنیکها و انواع مختلف تست وب front-end
— تست واحد: بررسی عمیق نحوه اعتبارسنجی منطق در کوچکترین محدوده، با تأکید بر اهمیت تست کامپوننت، و مقایسه چارچوبهای تست محبوب برای اطمینان از انجام صحیح وظایف اساسی
— تست یکپارچهسازی: تأیید ویژگیهای خاص از دیدگاه کاربر، با راهنمایی در مورد نحوه شبیهسازی سناریوهای دنیای واقعی و استفاده از اسنپشاتها برای بهبود پایداری پایگاه کد شما
— تست سرتاسری: تست کل گردش کار، با تمرکز بر شبیهسازی رفتار واقعی کاربر برای دستیابی به پوشش جامع
— تست بصری: اطمینان از دقت بصری، جزئیات نحوه مقایسه دقیق عناصر رابط کاربری در مرورگرها و نماهای مختلف برای تسریع فرآیند تست رابط کاربری
— چه کاری باید پس از نوشتن تستها انجام داد: چه زمانی و چگونه آنها را اجرا کنیم: بحث در مورد روشها و زمانبندیهای مختلف تست، مانند قلابهای pre-commit، triggerهای دستی، pre-and-post-merge تستها، و ادغام مداوم، و همچنین نحوه استنباط پوشش موارد استفاده از پوشش کد
— سوالات متداول: راهحلهای عملی برای چالشهای رایج، کمک به توسعهدهندگان برای غلبه بر موانع تست
— استفاده از هوش مصنوعی برای نوشتن تستها: نحوه استفاده از ابزارهای هوش مصنوعی برای افزایش کارایی نوشتن تستها و افزایش بهرهوری
The book is divided into eight chapters:
–Getting Started with Testing: A deep dive into the fundamental concepts, techniques, and various types of front-end web testing
–Unit Testing: In-depth exploration of how to validate logic at the smallest scope, emphasizing the importance of component testing, and a comparison of popular testing frameworks to ensure foundational tasks are done correctly
–Integration Testing: Verifying specific features from the user’s perspective, with guidance on how to simulate real-world scenarios and use snapshots to improve the stability of your codebase
–End-to-End Testing: Testing the entire workflow, focusing on simulating real user behavior to achieve comprehensive coverage
–Visual Testing: Ensuring visual accuracy, detailing how to precisely compare UI elements across different browsers and viewports to accelerate the UI testing process
–What to Do After Writing Tests: When and How to Run Them: Discussing different testing methods and timings, such as pre-commit hooks, manual triggers, pre- and post-merge tests, and continuous integration, as well as how to deduce usage case coverage from code coverage
–Frequently Asked Questions: Practical solutions to common challenges, helping developers overcome the hurdles of testing
–Leveraging AI for Writing Tests: How to leverage AI tools to enhance the efficiency of writing tests and increase productivity
این کتاب را میتوانید از لینک زیر بصورت رایگان دانلود کنید:
Download: Practical Front-End Testing
نظرات کاربران