doesn"t fit?
what are we going to do?
it doesn"t seem to work without testing
doesn"t fit?
what are we going to do?
it doesn"t seem to work without testing
Project has been finished, you also test a hammer ah? The so-called unit test itself is an indispensable part of TDD, which refers to a process in which the test cases are first written according to the requirements and prototypes, and then the project code is gradually completed according to the test cases when the project has not yet started. When the project is completed, it goes directly to the system test, and what unit test should be done at this time?
Unit test is one of the means of testing. You can also click with the mouse to test
writing a single test breakfast is more valuable, because the problem has been found earlier.
there are many excuses for not writing a single test. The common problem is cost (labor cost and time cost)
if your project has been manually tested by qa, the value of make-up single test is indeed lower
if you pursue quality. But time is limited, you can pick the code to test
priority testing tool code, the code that is used in many places, the ugly and complex code that may have problems, and the code with high business value
the ut of the front-end project is not necessarily executed before the project starts, right? Such as the ut of some react components or the ut of the util method.
Unit testing is mainly used in some open source projects. General requirements for the project, use, may write use cases for the workload is greater than your development workload.
No, unit tests can be carried out for a single function point, and hidden bug can be detected, especially whether many boundary conditions are missing
after the project is finished, it also depends on the maintenance value of your project. If your project is of great maintenance value in the future (for example, it will take a long time and is likely to add modification features),
I think it is necessary to add test cases.
the most important purpose of writing unit tests is to "give yourself confidence" and give you the confidence to modify the code.
of course low coverage or poorly written unit tests will give you the illusion of "everything goes fine".
In the vue-cli project, I directly introduced the particls library into index.html, and the related files are placed in the static directory . <div id="particles-js">< div> <script type="text javascript" src="s...
I am a novice. At present, I have encountered some confusion when learning set data types in Es6, as follows: in the Es6 about Ruan Yifeng, it is mentioned that set types can be used to intersect and judge sets, but I have tried it unsuccessfully. ...
read what a big guy wrote: Function.prototype.bind = Function.prototype.bind || function (context) { var me = this; var args = Array.prototype.slice.call(arguments, 1); var F = function () {}; F.prototype = this.prototype; var bound...
the text matched by the search box above an article is highlighted to realize the idea. ...
A quick implementation is generally as follows: Function.prototype.bind = function (context) { var me = this; var argsArray = Array.prototype.slice.call(arguments); return function () { return me.apply(context, argsArray.slice(1)) ...
const obj = { name: " jsCoder", skill: ["es6", "react", "angular"], say: function () { for (var i = 0, len = this.skill.length; i < len; iPP) { setTimeout(function(){ ...
there is such a requirement, as shown in the figure are four menu buttons. The four menu icons here are not vector icons similar to Font Awesome, but pictures in png format, namely f.png, u.png, s.png, and p.png. demand: clicking on the correspondi...
I am now doing a page, the background picture is randomly obtained from a picture library, some colors are darker, some colors are lighter, I want to use js to automatically judge, when the picture color is dark, set the font color to white, when the pic...
ask nuxt.js s vue single file, how to make some vue scripts to be rendered by browser instead of server. if the pull-up load belongs to browser rendering through ajax, how to express the .vue single file in ssr mode. Please, everyone. I m in a hurry...
Hello, seniors. Recently, I encountered a problem that is difficult to solve when writing vue. It is like this . data is a variable that calls api, and then assigns values to me I have asked other people whether they said that dom had already ...
1. To make an editable table, I want to be able to use the render method of the table in the AotoComplete, in the editing state, but when displaying, I find that there is a problem with the calculation of the drop-down part of the AotoComplete, sometime...
the following code, there are two groups of pictures, user1-image and user2-image, each have three pictures. Now each group can only select one picture, which means that after selecting a picture, you have to traverse the other pictures in this group an...
description has an array, which can contain special characters such as -, * , and others are strings and numbers. How to sort this array? var arr=[5,1, aa ,44, - , cc , - ] how do I sort the above array? sort result: [1 code > ...
as the title, the pc page is based on the 1920 design draft. Now it is found that the font is very large under the low split screen such as 1366. How to solve this problem? .. you don t need to adapt to the mobile end, you just need to look better on ...
encountered a problem, I bound to the element is the click event, testing found that mouseover triggered, feel amazing, want to know how to achieve, but can not find the development of that page, can you explain it? Thank you ...
I don t quite understand this when I have come into contact with react, recently. The following code state = { collapsed: false, theme : dark , result: [], }; and when I defined it, I found: const result = this.state.result; is equ...
how can select empty the selected data and display the original placeholder?? here is my code: ...
json { code:200, list:[ { type:1, path: www.file.xxxxx , name: xx , suffix: , parentid:123 ... }, { type:2, path: www.file.xxxxx , name: zzz , suffix: ".xlsx", parentid: null ...
there is a parent component that circulates N child components in render, and there is a unique ref, on each child component. When the first child component changes, the change method of the parent component will be called back, and the latter component...
how does the industry conduct compatibility testing now? It includes not only the lower version of IE, but also the lower version of Chrome, Firefox, etc., or is the compatibility of the lower version of modern browser unpredictable by default? Is there ...