توضیحاتی در مورد کتاب :
Packt Publishing, 2015. — 200 p. — ISBN: 978-1-78216-660-3.
JUnit برای تبدیل شدن به مهمترین ابزار برای تستهای خودکار توسعهدهندگان در جاوا به بلوغ رسیده است. با پشتیبانی همه IDE ها و سیستم های ساخت، برنامه نویسان را قادر می سازد تا ویژگی های نرم افزار را به طور قابل اعتماد و کارآمد ارائه دهند. با این حال، نوشتن تست های واحد خوب مهارتی است که باید آموخته شود. در غیر این صورت خیلی آسان است که به دلیل تولید و کد آزمایشی بهم ریخته، در توسعه مسدود شده بمانید. دستیابی به بهترین روش ها برای تست واحد به شما کمک می کند تا از چنین مشکلاتی جلوگیری کنید و پروژه های خود را با توجه به کیفیت و هزینه به موفقیت هدایت کنید.
این کتاب JUnit را توضیح می دهد. مفاهیم و بهترین شیوههای اعمال شده در رویکرد اول آزمون، پایهای برای اجزای جاوا با کیفیت بالا که در زمان و بودجه ارائه میشوند.از ابتدا شما این کار را انجام خواهید داد. به طور مداوم از طریق یک مثال عملی مرتبط هدایت شوند و دانش پیشینه و تکنیک های توسعه را گام به گام انتخاب کنند. با شروع با اصول سازماندهی آزمون ها، به زودی ضرورت تست های ساختار یافته را درک خواهید کرد و به رابطه تجزیه نیازمندی ها و دنیای چندوجهی استفاده مضاعف از آزمون خواهید پرداخت. در ارتباط با ابزارهای شخص ثالث، به شما آموزش داده میشود که تستهای خود را به طور کارآمد بنویسید، محیط آزمایشی خود را با خواستههای خاص تطبیق دهید و بیانیههای تأیید صحت خود را افزایش دهید. در نهایت، یکپارچه سازی مداوم را به عنوان مکملی عالی برای پشتیبانی از چرخه های بازخورد کوتاه و گزارش های مرتبط با کیفیت برای کل تیم خود تجربه خواهید کرد.
این آموزش نقطه ورود عمیقی به ملزومات تست واحد با JUnit و شما را برای چالش های کاری روزانه مرتبط با آزمون آماده می کند.
آنچه خواهید آموخت: زیرساخت ها و منابع تست خود را به طور معقول سازماندهی کنید؛
آزمون های ساختار یافته را درک کرده و بنویسید؛
نیازهای خود را به واحدهای کوچک و مستقل قابل آزمایش تجزیه کنید؛
با استفاده از پایه تولید شده در حین پرواز، کارایی آزمایش خود را افزایش دهید. در قطعات و پرداختن به ویژگیهای جریان استثنایی؛
بهکارگیری دوندهها برای تطبیق با نیازهای آزمایشی خاص؛
استفاده از قوانین برای افزایش ایمنی تست و کاهش صفحه دیگ بخار؛
استفاده از مکملهای شخص ثالث برای بهبود بیان بیانیههای راستیآزمایی شما.
طراحی و پیادهسازی اجزای سیستم قوی با استفاده از استاندارد آزمایش واحد واقعی در جاوا.
کاهش میزان نقص و تلاش برای نگهداری، به علاوه، به طور همزمان کیفیت کد و سرعت توسعه را افزایش دهید.
یک آموزش گام به گام را دنبال کنید که تکنیک های ضروری را بر اساس سناریوهای دنیای واقعی و پیشینه های کد ارائه می دهد.
این کتاب برای چه کسی است:مهم نیست به عنوان یک توسعهدهنده جاوا چه پیشینهای دارید، صرفاً به ایجاد یک شبکه ایمنی برای کاهش رگرسیون برنامه دسکتاپ خود علاقه دارید یا در برای بهبود قابلیت اطمینان سمت سرور شما بر اساس اجزای قوی و قابل استفاده مجدد، تست واحد راه حلی است. این کتاب یک ورودی جامع اما مختصر در اختیار شما قرار می دهد که دانش شما را به صورت گام به گام به سطح حرفه ای ارتقا می دهد.
توضیحاتی در مورد کتاب به زبان اصلی :
Packt Publishing, 2015. — 200 p. — ISBN: 978-1-78216-660-3.
JUnit has matured to become the most important tool when it comes to automated developer tests in Java. Supported by all IDEs and build systems, it empowers programmers to deliver software features reliably and efficiently. However, writing good unit tests is a skill that needs to be learned; otherwise it's all too easy to end up in gridlocked development due to messed up production and testing code. Acquiring the best practices for unit testing will help you to prevent such problems and lead your projects to success with respect to quality and costs.
This book explains JUnit concepts and best practices applied to the test first approach, a foundation for high quality Java components delivered in time and budget.From the beginning you'll be guided continuously through a practically relevant example and pick up background knowledge and development techniques step by step. Starting with the basics of tests organization you'll soon comprehend the necessity of well structured tests and delve into the relationship of requirement decomposition and the many-faceted world of test double usage. In conjunction with third-party tools you'll be trained in writing your tests efficiently, adapt your test case environment to particular demands and increase the expressiveness of your verification statements. Finally, you'll experience continuous integration as the perfect complement to support short feedback cycles and quality related reports for your whole team.
The tutorial gives a profound entry point in the essentials of unit testing with JUnit and prepares you for test-related daily work challenges.
What You Will Learn:Organize your test infrastructure and resources reasonably;
Understand and write well structured tests;
Decompose your requirements into small and independently testable units;
Increase your testing efficiency with on-the-fly generated stand-in components and deal with the particularities of exceptional flow;
Employ runners to adjust to specific test demands;
Use rules to increase testing safety and reduce boilerplate;
Use third party supplements to improve the expressiveness of your verification statements.
Design and implement robust system components by means of the de facto unit testing standard in Java.
Reduce defect rate and maintenance effort, plus simultaneously increase code quality and development pace.
Follow a step-by-step tutorial imparting the essential techniques based on real-world scenarios and code walkthroughs.
Who This Book Is For:No matter what your specific background as a Java developer, whether you're simply interested in building up a safety net to reduce regressions of your desktop application or in improving your server-side reliability based on robust and reusable components, unit testing is the way to go. This book provides you with a comprehensive but concise entrance advancing your knowledge step-wise to a professional level.