Tag:unit testing
-
Time:2021-1-26
We rely on the database for data storage and acquisition, but when a large number of data requests appear, the database is still a little weak. In this article, I will take you to know about the auxiliary tool redis. First of all, let’s create a springboot project. I won’t talk about it anymore. If […]
-
Time:2021-1-23
Phpstan: finding bugs in code without writing tests Whenever I see developers switching from compiled languages such as Java or C #, to interpreted languages such as PHP, I feel very happy that they have liberated their productivity. In addition to these conventional Execution Models (initiate, process and end requests) and shorter feedback loops (no […]
-
Time:2021-1-20
Today, let’s talk about the cmake test. However, we are still talking about C + + testing. Cmake provides us with perfect testing support, for example, it has a special module ctest. Cmake native test support The cmake native support test is very simple, with only two functions: enable_testing() add_test(NAME <name> COMMAND <command> [<arg>…] [CONFIGURATIONS […]
-
Time:2021-1-6
Write at the beginning: For many people, unit testing is a way to promote development or improve product quality, If I draw a picture, you can understand In fact, unit test is to write unit test code first, then use the unit test framework to simulate the environment (such as browser), and then run your […]
-
Time:2020-12-31
Why write unit tests for bash scripts? Because bash scripts usually perform some operations related to the operating system, which may cause some irreversible operations to the running environment, such as modifying or deleting files, upgrading software packages in the system, etc. Therefore, in order to ensure the safety and reliability of bash script, we […]
-
Time:2020-12-29
1、 Introduction In daily development, testing is indispensable. Each manual testing is very time-consuming and laborious, and it can be used many times at a time through unit testing; Unit testing is mainly to simulate the parameters in the business, call our functions, obtain the execution results, and then judge whether the results conform to […]
-
Time:2020-12-28
preface The creation of this article comes from the problems my friends encountered in self-learning mybatis. The problems are shown in the title of the article. Cannot determine value type from string ‘xxx’. On the other hand, it can solve all the problems without any parameters. His question is that his entity does not use […]
-
Time:2020-12-25
Author: wish Last week we officially announced the tidb performance challenge. During the season, you can get corresponding points by contributing codes to tidb, tikv and PD to complete tasks of specified categories. Finally, you can use points to exchange for gifts or bonus. In the performance challenge, you first need to complete several easy […]
-
Time:2020-12-23
This paper describes the phpunit unit test installation and use. For your reference, the details are as follows: 1、 Download the code base corresponding to PHP version from the official website https://phpunit.de/getting-started-with-phpunit.html 2、 Installing phpunit The official website provides two methods of installation 1. PHP Archive (PHAR) ➜ wget -O phpunit https://phar.phpunit.de/phpunit-8.phar ➜ chmod +x phpunit […]
-
Time:2020-12-19
Springboot project creation Create module Create a project module based on idea, the module name is 04 springboot start, the group ID and package name are com.cy As shown in the figure:Fill in the module information, as shown in the figure:Select the module version of the project, and you do not need to manually add […]
-
Time:2020-12-16
brief introduction In daily development, testing is indispensable Go standard library has a testing framework called testing, which can be used for unit testing and performance testing It is integrated with the command go test Test files are suffixed_ test.go Named, usually in the same package as the file being tested unit testing The format […]
-
Time:2020-12-7
With the accumulation of time, the number of users is increasing, and the scale of data is also increasing. Database query operation often becomes the bottleneck of user experience. At this time, using cache is often one of the very good means to solve this problem. Spring 3 starts to provide powerful annotation based cache […]