Cargando…

Testing with JUnit : master high-quality software development driven by unit tests /

Master high quality software development driven by unit tests About This Book 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-b...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Appel, Frank (Autor)
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham, UK : Packt Publishing, 2015.
Colección:Community experience distilled.
Temas:
Acceso en línea:Texto completo (Requiere registro previo con correo institucional)

MARC

LEADER 00000cam a2200000 i 4500
001 OR_ocn922539526
003 OCoLC
005 20231017213018.0
006 m o d
007 cr unu||||||||
008 150929s2015 enka ob 001 0 eng d
040 |a UMI  |b eng  |e rda  |e pn  |c UMI  |d TEFOD  |d OCLCF  |d IDEBK  |d YDXCP  |d EBLCP  |d DEBBG  |d COO  |d IDB  |d OCLCQ  |d MERUC  |d OCLCQ  |d CEF  |d OCLCQ  |d WYU  |d UAB  |d AU@  |d OCLCQ  |d N$T  |d UKMGB  |d OCLCO  |d DST  |d K6U  |d OCLCQ 
015 |a GBC1H5439  |2 bnb 
016 7 |a 018005394  |2 Uk 
019 |a 919682707  |a 919875199  |a 932321080 
020 |a 9781782166610  |q (electronic bk.) 
020 |a 1782166610  |q (electronic bk.) 
020 |z 9781782166603 
020 |z 1782166602 
029 1 |a AU@  |b 000056696741 
029 1 |a CHNEW  |b 000892946 
029 1 |a CHVBK  |b 374521034 
029 1 |a DEBBG  |b BV043020370 
029 1 |a DEBBG  |b BV043624961 
029 1 |a DEBSZ  |b 455699429 
029 1 |a GBVCP  |b 848504623 
029 1 |a UKMGB  |b 018005394 
035 |a (OCoLC)922539526  |z (OCoLC)919682707  |z (OCoLC)919875199  |z (OCoLC)932321080 
037 |a CL0500000652  |b Safari Books Online 
037 |a F4A4BAC0-069A-4C84-98DC-0EA69E2F3026  |b OverDrive, Inc.  |n http://www.overdrive.com 
050 4 |a QA76.76.T48 
082 0 4 |a 005.14  |2 23 
049 |a UAMI 
100 1 |a Appel, Frank,  |e author. 
245 1 0 |a Testing with JUnit :  |b master high-quality software development driven by unit tests /  |c Frank Appel. 
246 3 0 |a Master high-quality software development driven by unit tests 
264 1 |a Birmingham, UK :  |b Packt Publishing,  |c 2015. 
300 |a 1 online resource (1 volume) :  |b illustrations 
336 |a text  |b txt  |2 rdacontent 
337 |a computer  |b c  |2 rdamedia 
338 |a online resource  |b cr  |2 rdacarrier 
490 1 |a Community experience distilled 
588 0 |a Online resource; title from cover page (Safari, viewed September 25, 2015). 
500 |a Includes index. 
505 0 |a Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Getting Started; Why you should busy yourself with unit tests; Reducing the defect rate; Improving the code quality; Increasing the development pace; Enhancing the specification density; Boosting confidence and courage; Setting the table; Choosing the ingredients; Organizing your code; Serving the starter; Introducing the example app; Understanding the nature of a unit test; Writing the first test; Evaluating test results; Writing tests first; Summary. 
505 8 |a Chapter 2: Writing Well-structured TestsThe four phases of a unit test; Using a common test structure; Setting up the fixture; What goes up must come down; Verification; Choosing the next functionality to test; Start with the happy path; Conclude with corner cases; After the war; Getting the test names right; Test prefix; Behavior expressing patterns; Reducing names to the essentials; Summary; Chapter 3: Developing Independently Testable Units; Decomposing requirements; Separating concerns; Component dependencies; Understanding isolation; Delegating responsibilities to DOCs. 
505 8 |a Indirect input and outputUnit isolation with test doubles; Working with test doubles; Placeholder dummies; Fake it till you make it; Providing indirect input with stubs; Recording interactions with spies; Verifying behavior with mocks; Increasing efficiency with mock frameworks; The promised land?; Basic stubbing; Indirect output verification; Using test helpers; Motivation; The test helper class; The test helper object; Summary; Chapter 4: Testing Exceptional Flow; Testing patterns; Using the fail statement; Annotated expectations; Verification with the ExpectedException rule. 
505 8 |a Capturing exceptions with closuresTreating collaborators; Fail fast; The stubbing of exceptional behavior; Summary; Chapter 5: Using Runners for Particular Testing Purposes; Understanding the architecture; What are runners good for?; Looking at the big picture; Writing your own extension; Using custom runners; Furnishing a suite with test cases; Structuring suites into categories; Populating suites automatically; How about creating test doubles with annotations?; Writing dataset tests; Using parameterized tests; Reduce glue code with JUnitParams. 
505 8 |a Increase the expressiveness of test descriptions with BurstSummary; Chapter 6: Reducing Boilerplate with JUnit Rules; Understanding rules; What are JUnit rules?; Writing your own rule; Configuring the fixture with annotations; Working with advanced concepts; Using ClassRules; The Ordering of rule execution; Employing custom solutions; Working with system settings; Ignoring tests conditionally; Summary; Chapter 7: Improving Readability with Custom Assertions; Working with the JUnit built-in assert approach; Understanding the basics; Reviewing the file session storage. 
504 |a Includes bibliographical references and index. 
520 |a Master high quality software development driven by unit tests About This Book 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. 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 In Detail 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 conju ... 
590 |a O'Reilly  |b O'Reilly Online Learning: Academic/Public Library Edition 
650 0 |a Computer software  |x Testing. 
650 0 |a Computer software  |x Development. 
650 7 |a COMPUTERS.  |x Programming Languages  |x Java.  |2 bisacsh 
650 7 |a COMPUTERS.  |x Software Development & Engineering  |x Quality Assurance & Testing.  |2 bisacsh 
650 7 |a Computer software  |x Development.  |2 fast  |0 (OCoLC)fst00872537 
650 7 |a Computer software  |x Testing.  |2 fast  |0 (OCoLC)fst00872601 
776 0 8 |i Print version:  |a Appel, Frank.  |t Testing with JUnit.  |d Olton Birmingham : Packt Publishing Ltd, ©2015  |z 9781782166603 
830 0 |a Community experience distilled. 
856 4 0 |u https://learning.oreilly.com/library/view/~/9781782166603/?ar  |z Texto completo (Requiere registro previo con correo institucional) 
938 |a ProQuest Ebook Central  |b EBLB  |n EBL3564809 
938 |a EBSCOhost  |b EBSC  |n 1057593 
938 |a ProQuest MyiLibrary Digital eBook Collection  |b IDEB  |n cis32459778 
938 |a YBP Library Services  |b YANK  |n 12591682 
994 |a 92  |b IZTAP