The Jacobo plug-in configuration generates a unit test coverage report

maven's phase and goal Before talking about Jacobo configuration, let's talk about phase and goal of maven plug-in configuration. The phase consists of a goal. Phase is actually the container of goal, which is actually executed by goal. When a phase is executed, the actual execution is the goal bound to the phase. For example, executing mvn p ...

Posted by Peggy on Tue, 25 Jan 2022 15:09:38 +0100

jest unit test - Fundamentals

jest test - Basic 1, Understanding front-end automation With the development of front-end, the field of front-end design has become more and more complex. This puts forward higher requirements for our front-end engineering ability. Good front-end engineering generally includes three aspects: Front end automated testing (prerequisites)High qu ...

Posted by ConnorSBB on Sun, 23 Jan 2022 18:48:28 +0100

Gao fushuai in unit testing, Pytest framework, hand-in-hand teaching, high-order usage practice

Previous remarks In the introduction of the last article, we introduced the basic use of pytest. This article specifically explains the pre-processing and post-processing of use case execution in pytest. The pre-processing and post-processing of use case execution in pytest can be realized either by test fixture or by xunit style pre-proces ...

Posted by stewart on Thu, 20 Jan 2022 22:19:16 +0100

Fast writing method of SpringBoot unit test based on link idea

Introduction: This paper prefers practice to methodology. The SpringBoot unit test mentioned in this paper is not an official solution, but a more convenient and efficient writing method. Each team and even each developer in the team may have their own writing habits and styles. As long as the effect of unit testing can be achieved, there is no ...

Posted by mayfair on Wed, 19 Jan 2022 17:51:24 +0100

LateNight: where? I use the local environment pytest to take you to play custom operators

Late at night: where? I use the local environment pytest to take you to play custom operators module1: Multi play Python debugging framework pytest Beginner's introduction Hello everyone, the python general testing framework is unittest+HTMLTestRunner. I have seen the pytest document during this period and found that this framework and ric ...

Posted by jmarcv on Wed, 19 Jan 2022 03:10:03 +0100

Setup and Use of Unit Test Environment gtest, mockcpp, LCOV

Setup and Use of Unit Test Environment gtest, mockcpp, LCOV This article is mainly used to record individual learning, and also to provide reference for those who have the same needs. Example source github:https://github.com/904221150/gtest_sample 1. Introduction to the environment The software tools used to set up the unit test environment ...

Posted by Random on Tue, 18 Jan 2022 23:41:51 +0100

Spring Boot Test series 4 - explore using WebTestClient for API testing

Spring Boot Test series 4 - explore using WebTestClient for API testing preface This article is the fourth in the Spring Boot Test series to explore the use of WebTestClient for API testing. Front article: Spring Boot Test series 3 - testing the Web tier using WebTestClient API design resources resources: User - user Data example: ...

Posted by kykin on Tue, 18 Jan 2022 23:31:20 +0100

Awesome, front-end automated test framework cypress

automated testing In order to ensure software quality and reduce repetitive testing, automated testing has been widely used. Automated testing is a testing method that uses specific software to control the testing process and compare the difference between the actual results and the expected results. By automating the test, we can transform ...

Posted by jdnet on Mon, 17 Jan 2022 12:24:58 +0100

Junit5 usage example

1, Create unit test service Right click Service - > New - > other - > JUnit test case - > next, select the method to create the unit test, or click finish directly Relevant dependencies are attached at the end of the article 2, Sample code // Get dev environment configuration file @ActiveProfiles("dev") // Specify startup class @ ...

Posted by bulldorc on Mon, 17 Jan 2022 08:57:46 +0100

An implementation of isolated HTTP dependency stable running e2e test cases

backgroundEnd to end testing is used to verify the overall behavior of the application.Compared with Unit Testing, which focuses on function verification, e2e is more prone to external dependencies, such as relying on external HTTP interface data, MYSQL data, Redis data, etc. These can be understood as external data dependencies, which affect t ...

Posted by Dev on Fri, 14 Jan 2022 17:21:46 +0100