万本电子书0元读

万本电子书0元读

顶部广告

Mastering Software Testing with JUnit 5电子书

售       价:¥

14人正在读 | 0人评论 6.2

作       者:Boni García

出  版  社:Packt Publishing

出版时间:2017-10-27

字       数:38.9万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
A comprehensive, hands-on guide on unit testing framework for Java programming language About This Book ? In-depth coverage of Jupiter, the new programming and extension model provided by JUnit 5 ? Integration of JUnit 5 with other frameworks such as Mockito, Spring, Selenium, Cucumber, and Docker ? Best practices for writing meaningful Jupiter test cases Who This Book Is For This book is for Java software engineers and testers. If you are a Java developer who is keen on improving the quality of your code and building world class applications then this book is for you. Prior experience of the concepts of automated testing will be helpful. What You Will Learn ? The importance of software testing and its impact on software quality ? The options available for testing Java applications ? The architecture, features and extension model of JUnit 5 ? Writing test cases using the Jupiter programming model ? How to use the latest and advanced features of JUnit 5 ? Integrating JUnit 5 with existing third-party frameworks ? Best practices for writing meaningful JUnit 5 test cases ? Managing software testing activities in a living software project In Detail When building an application it is of utmost importance to have clean code, a productive environment and efficient systems in place. Having automated unit testing in place helps developers to achieve these goals. The JUnit testing framework is a popular choice among Java developers and has recently released a major version update with JUnit 5. This book shows you how to make use of the power of JUnit 5 to write better software. The book begins with an introduction to software quality and software testing. After that, you will see an in-depth analysis of all the features of Jupiter, the new programming and extension model provided by JUnit 5. You will learn how to integrate JUnit 5 with other frameworks such as Mockito, Spring, Selenium, Cucumber, and Docker. After the technical features of JUnit 5, the final part of this book will train you for the daily work of a software tester. You will learn best practices for writing meaningful tests. Finally, you will learn how software testing fits into the overall software development process, and sits alongside continuous integration, defect tracking, and test reporting. Style and approach The book offers definitive and comprehensive coverage of all the Unit testing concepts with JUnit and its features using several real world examples so that readers can put their learning to practice almost immediately. This book is structured in three parts: 1. Software testing foundations (software quality and Java testing) 2. JUnit 5 in depth (programming and extension model of JUnit 5) 3. Software testing in practice (how to write and manage JUnit 5 tests)
目录展开

Title Page

Copyright

Mastering Software Testing with JUnit 5

Credits

About the Author

About the Reviewers

www.PacktPub.com

Why subscribe?

Customer Feedback

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Errata

Piracy

Questions

Retrospective On Software Quality And Java Testing

Software quality

Quality engineering

Requirements and specification

Quality Assurance

ISO/IEC-25000

Verification and Validation

Software defects

Static analysis

Software testing

Testing levels

Unit testing

Integration testing

System testing

Testing methods

Black-box testing

White-box testing

Non-functional testing

Testing types

Other testing approaches

Testing frameworks for the JVM

JUnit 3

Standard tests in JUnit 3

Test execution in JUnit 3

JUnit 4

Standard tests in JUnit 4

Test execution in JUnit 4

Advanced features of JUnit 4

JUnit ecosystem

Summary

What’s New In JUnit 5

Road to JUnit 5

JUnit 5 motivation

Modularity

JUnit 4 runners

JUnit 4 rules

JUnit 5 inception

JUnit 5 community

JUnit 5 architecture

Test Engine SPI

Test Launcher API

Running tests in JUnit 5

Jupiter tests with Maven

Jupiter tests with Gradle

Legacy tests with Maven

Legacy tests wih Gradle

The ConsoleLauncher

Jupiter tests in JUnit 4

IntelliJ

Eclipse

The extension model of JUnit 5

Test lifecycle

Conditional extension points

Dependency injection

Third-party extensions

Summary

JUnit 5 Standard Tests

Test lifecycle

Test instance lifecycle

Skipping tests

Display names

Assertions

Jupiter assertions

Group of assertions

Asserting exceptions

Asserting timeouts

Third-party assertion libraries

Tagging and filtering tests

Filtering tests with Maven

Maven regular support

Filtering tests with Gradle

Meta-annotations

Conditional test execution

Assumptions

Nested tests

Repeated tests

Migration from JUnit 4 to JUnit 5

Rule support in Jupiter

Summary

Simplifying Testing With Advanced JUnit Features

Dependency injection

TestInfoParameterResolver

RepetitionInfoParameterResolver

TestReporterParameterResolver

Dynamic tests

Test interfaces

Test templates

Parameterized tests

@ValueSource

@EnumSource

@MethodSource

@CsvSource and @CsvFileSource

@ArgumentsSource

Argument conversion

Implicit conversion

Explicit conversion

Custom names

Java 9

JUnit 5 and Java 9 compatibility

Beyond JUnit 5.0

Summary

Integration Of JUnit 5 With External Frameworks

Mockito

Mockito in a nutshell

JUnit 5 extension for Mockito

Spring

Spring in a nutshell

Spring modules

Introduction to Spring Test

Testing Spring Boot applications

JUnit 5 extension for Spring

Selenium

Selenium in a nutshell

JUnit 5 extension for Selenium

Cucumber

Cucumber in a nutshell

JUnit 5 extension for Cucumber

Docker

Docker in a nutshell

JUnit 5 extension for Docker

Android

Android in a nutshell

Gradle plugin for JUnit 5 in Android projects

REST

REST in a nutshell

Using REST test libraries with Jupiter

Summary

From Requirements To Test Cases

The importance of requirements

Test planning

Test design

Equivalence partitioning

Boundary analysis

Test coverage

Software testing principles

The psychology of testing

Test anti-patterns

Code smells

Summary

Testing Management

Software development processes

Continuous Integration

Jenkins

Travis CI

Test reporting

Maven Surefire Report

Allure

Defect-tracking systems

Static analysis

Putting all pieces together

Features and requirements

Design

Tests

Summary

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部