Mastering Software Testing with JUnit 5

Boni Garcia

  • 出版商: Packt Publishing
  • 出版日期: 2017-10-30
  • 售價: $1,980
  • 貴賓價: 9.5$1,881
  • 語言: 英文
  • 頁數: 350
  • 裝訂: Paperback
  • ISBN: 1787285731
  • ISBN-13: 9781787285736
  • 相關分類: Java 相關技術JUnit軟體測試
  • 海外代購書籍(需單獨結帳)

買這商品的人也買了...

相關主題

商品描述

Key Features

  • 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

Book Description

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.

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

About the Author

Boni García has a PhD degree on Information and Communications Technology from Technical University of Madrid (UPM) in Spain since 2011. Currently he works as a Researcher at King Juan Carlos University (URJC) and Assistant Professor at Digital Art and Technology University (U-tad) in Spain. He is member of Kurento project, where he is in charge of the testing framework for WebRTC applications. He participates in the coordination of the ElasTest project, an elastic platform aimed to ease end-to-end testing. Boni is an active member on the free open source software (FOSS) community with big emphasis on software testing and web engineering. Among other, he owns the open source projects WebDriverManager and selenium-jupiter (JUnit 5 extension for Selenium).

Table of Contents

  1. Retrospective on software quality and Java testing
  2. What’s new in JUnit 5
  3. JUnit 5 standard tests
  4. Simplifying testing with advanced JUnit features
  5. Integration of JUnit 5 with external frameworks
  6. From requirements to test cases
  7. Testing management

商品描述(中文翻譯)

主要特點


  • 深入介紹 JUnit 5 提供的新的程式設計和擴展模型 Jupiter

  • 將 JUnit 5 與其他框架(如 Mockito、Spring、Selenium、Cucumber 和 Docker)整合

  • 撰寫有意義的 Jupiter 測試案例的最佳實踐

書籍描述

在建立應用程式時,擁有乾淨的程式碼、高效的環境和有效的系統是非常重要的。自動化單元測試有助於開發人員實現這些目標。JUnit 測試框架是 Java 開發人員的熱門選擇,並且最近推出了 JUnit 5 的重大版本更新。

本書將向您展示如何利用 JUnit 5 的威力來撰寫更好的軟體。

本書首先介紹軟體品質和軟體測試。之後,您將深入分析 Jupiter 的所有功能,Jupiter 是 JUnit 5 提供的新的程式設計和擴展模型。您將學習如何將 JUnit 5 與其他框架(如 Mockito、Spring、Selenium、Cucumber 和 Docker)整合。

在介紹 JUnit 5 的技術特點之後,本書的最後一部分將培訓您成為軟體測試人員的日常工作。您將學習撰寫有意義的測試案例的最佳實踐。最後,您將了解軟體測試如何融入整個軟體開發流程,以及如何與持續整合、缺陷追蹤和測試報告並存。

您將學到什麼


  • 軟體測試的重要性及其對軟體品質的影響

  • 測試 Java 應用程式的選項

  • JUnit 5 的架構、功能和擴展模型

  • 使用 Jupiter 程式設計模型撰寫測試案例

  • 如何使用最新和高級的 JUnit 5 功能

  • 將 JUnit 5 與現有的第三方框架整合

  • 撰寫有意義的 JUnit 5 測試案例的最佳實踐

  • 在活躍的軟體專案中管理軟體測試活動

關於作者

Boni García 自 2011 年起擁有西班牙馬德里技術大學(UPM)的資訊和通訊技術博士學位。目前他在西班牙胡安·卡洛斯大學(URJC)擔任研究員,並在西班牙數位藝術與技術大學(U-tad)擔任助理教授。他是 Kurento 專案的成員,負責 WebRTC 應用程式的測試框架。他參與協調 ElasTest 專案,這是一個旨在簡化端對端測試的彈性平台。Boni 是自由開源軟體(FOSS)社群的活躍成員,非常重視軟體測試和網頁工程。他擁有 WebDriverManager 和 selenium-jupiter(JUnit 5 的 Selenium 擴展)等開源專案。

目錄


  1. 軟體品質和 Java 測試回顧

  2. JUnit 5 的新功能

  3. JUnit 5 標準測試

  4. 使用高級 JUnit 功能簡化測試

  5. 將 JUnit 5 與外部框架整合

  6. 從需求到測試案例

  7. 測試管理