Mastering Unit Testing Using Mockito and JUnit - Sujoy Acharya - Grāmatas - Packt Publishing Limited - 9781783982509 - 2014. gada 15. jūlijs
Ja vāks un nosaukums nesakrīt, pareizs ir nosaukums

Mastering Unit Testing Using Mockito and JUnit

Cena
€ 52,99

Pasūtīts no attālās noliktavas

Paredzamā piegāde . gada 1. - 15. jūn.
Pievienot savam iMusic vēlmju sarakstam

An advanced guide to mastering unit testing using Mockito and JUnit

Overview

  • Create meaningful and maintainable automated unit tests using advanced JUnit features and the Mockito framework
  • Build an automated continuous integration environment to get real-time feedback on broken code, code coverage, code quality, and integration issues
  • Covers best practices and presents insights on architecture and designs to create faster and reliable unit testing environments

In Detail

It is insanity to keep doing things the same way and expect them to improve. Any program is useful only when it is functional; hence, before applying complex tools, patterns, or APIs to your production code, checking software functionality is must. Automated JUnit tests help you verify your assumptions continuously, detect side effects quickly, and also help you save time.

This book will provide the skills you need to successfully build and maintain meaningful JUnit test cases. You will begin with how to use advanced JUnit 4 features, improve code coverage, automate JUnit tests, monitor code quality, write JUnit tests for the database and web tier refactor legacy code, mock external dependencies using Mockito, and write testable code using test-driven development. By sequentially working through the steps in each chapter, you will quickly master the advanced JUnit features.

What you will learn from this book

  • Write advanced JUnit test cases using advanced JUnit 4 features
  • Automate JUnit test cases using Gradle, Maven, and Ant scripting
  • Practice continuous integration with Jenkins and Ant, Maven, and Gradle scripting
  • Monitor code quality with the SonarQube dashboard
  • Analyze static code using PMD, Checkstyle, and FindBugs
  • Master code coverage with Clover, Cobertura, EclEmma, and JaCoCo
  • Design for testability and refactor legacy code
  • Practice test-driven development with Mockito

Approach

A practical and easy-to-follow, yet comprehensive, guide to learning advanced JUnit testing. Each topic is explained and placed in context, and for the more inquisitive, there are more details of the concepts used.


314 pages

Mediji Grāmatas     Paperback Book   (Grāmata ar mīksto vāku un līmēto muguru)
Izlaists 2014. gada 15. jūlijs
ISBN13 9781783982509
Izdevēji Packt Publishing Limited
Lapas 314
Izmēri 191 × 236 × 17 mm   ·   539 g
Valoda Angļu  

Vairāk no Sujoy Acharya

Rādīt visu

Mere med samme udgiver

Skatīt visus Sujoy Acharya ( piem., Paperback Book )