当前位置:网站首页>Software testing weekly (issue 75): only when you look down, can you see your true self.
Software testing weekly (issue 75): only when you look down, can you see your true self.
2022-06-11 07:21:00 【Bixiaofan】

edit : A pot 、 Jingyi 、 Xiaoshuzi 、 Zheyu 、 the summer solstice 、CC、Silvery
It's today 2022 year 06 month 10 Japan , Welcome to 75 period ! Here's a record of what we've seen in the past week Software testing and peripherals Industry trends , Released on Friday .
This issue focuses on : Front end single test , Why not test “ Implementation details ”? How the strict precision test is done ? What is the future trend of automated testing ? Taobao shop TypeScript Implementation practice of R & D regulations ;Google: How to do code review?Chrome Devtools Debugging tips ; kill OOM What routines are there ?
·
Happy reading !
software test
1. Front end single test , Why not test “ Implementation details ”?
The sea monster who wrote the code
Many people write single tests , The biggest problem is not how to write test code , It is :“ What should be measured ?”,“ How deep should we measure ”,“ What should not be measured ”.
The author thinks that , We should avoid testing “ Implementation details ”, Why? ?
There are two main reasons :
- False error (False Negative): When refactoring, the code runs successfully , But the test case collapsed ;
- False correct (False Positive): When the application code really crashes , However, the test case passed again .
that , How to avoid testing implementation details ?
Of course , The first is to use the right tools , such as React Testing Library.
can , If you still don't know what to test , You can follow the following process :
- If it collapses , Which untested code has the most impact ?( Inspection process )
- Try to reduce test cases to one unit or several code units ( such as : Press the checkout button , Will send a /checkout request )
- Think about who is the real user of this part of the code ?( such as :Developer To render the checkout form ,End User Will use it to operate the click button )
- Write an action list to the user , And manually test to confirm that the function is normal ( Render the form in the shopping cart with fake data , Click the checkout button , Ensure false /checkout Request execution , And get a successful response , Make sure you can show success messages )
- Turn this manual operation list into automatic test .
Original address : Front end single test , Why not test “ Implementation details ”? - Nuggets |
2. How the strict precision test is done ?
Strict selection of Technology

Tianji platform is an accurate testing platform , It has been online for nearly a year , Already in strict election 、 media 、 Yunxin 、 youdao 、 Hangzhou research urs And other departments are fully put into use , At present, it has been connected to 300+ Applications , For each department 4 Ten thousand times + All kinds of coverage calculation and accurate analysis .
Open source address : |
3. What is the future trend of automated testing ?
Wang Yang ( Thoughtworks Insight )

Automated testing begins with the earliest recording and playback technologies , Gradually develop into DOM Object recognition and hierarchical automation , And based on POM(Page Object Model) To improve use case reuse , To the current hot based on AI Automation of technology , It shows that the development trend of automated testing is more intelligent , More accurate , More efficient .
This paper introduces two kinds of intelligent automatic test technologies which have been widely used in the industry :
- self-healing (Self-Healing) technology
- machine learning (Machine Learning) technology
Open source address : |
Quality effectiveness
1. Taobao shop TypeScript Implementation practice of R & D regulations
Lin Weixuan ( Taoxi front end team )

This article first shares the specifications on the R & D side , It mainly focuses on how to write more standardized and maintainable TypeScript Code , This is what the project participants and maintainers need to focus on ;
Then there is the engineering side specification , Will discuss from JavaScript Project migration , Develop unified engineering constraints for the team .
next , Go a little deeper TypeScript Of Compiler, See how to make it work better , Even more stringent constraints based on it : Source code level .
In the end , Again TypeScript Up to now , Competitors that have appeared 、 Recommended tool chain , And summarize .
Original address : Taobao shop TypeScript Implementation practice of R & D regulations |
2. Google: How to do code review?
lhyt forever( Different front end )
This paper introduces Google How do engineers do code review, as well as code review guide .
Original address : |
🦧 Technical co frequency
1. Chrome Devtools Debugging tips
cheer4chai( Baidu Geek say )

For programmers , Have a good command of debug Tools and methods are undoubtedly a very important part of the work , For front-end development engineers Chrome Devtools Is the most common debugging tool .
This article mainly introduces some applications Chrome Devtools Debugging skills , Hope to help developers improve Debug level .
Original address : |
2. kill OOM What routines are there ?
Master LAN ( Notes on Shishan's structure )
As the project grows ,OOM(Out Of Memory) It has become one of the difficult problems on the crash statistics platform .
Most business developers are interested in online OOM The problem is usually not handled for the time being :
- On the one hand, it's because OOM The problem is not enough log, Cannot be analyzed and solved in a short time .
- On the other hand, it may be busy with business iterations 、 Exhaustion of body and mind , No energy to study OOM Solutions for .
This article will be published online OOM Problem as a starting point , Introduce the common OOM type 、OOM Principle 、 Big factory OOM Optimize black technology 、 And the mainstream OOM Monitoring plan .
Original address : The big factory killed OOM The routine , nothing more than this |
Continued growth
1. This of the bell 40 Thinking , It explains why he became the richest man in China
Tian Shanshan ( Lishi Business Review )
- A small business needs to grow , The type of operation must be unique , And it must be profiteering , Because there is no scale effect for you to accumulate .
- Many people call products commodities , Goods and products are two things , The product contains research results 、 Work hard , The accumulation of years 、 Technology , The goods are different , The price of the goods is , The business relationship in the mall . Because if an enterprise does not express its contribution to the society through products , What does this enterprise do ?
- We don't use data to make decisions . When you see the data, it is past tense , You'll never catch up . If you use data to make decisions , At most, it is only a second rate enterprise 、 Second rate delivery , There must be a sense of advance . Our company buys some data to prove that our delivery is right , Just for verification , Don't use data to make decisions .
- Real estate people came in to make water , How are you doing ? Any industry needs the accumulation of knowledge , If you only have money, you can enter a new industry , Transformation can , That's bullshit . Money alone , Banks can rule all industries . What you throw money at is ignorance .
- The first step in upgrading is to upgrade the concept . Upgrading is an evolution of internal concepts , The evolution of ideas needs new compound knowledge to support , Different products 、 Different brands , The way to upgrade is different , But one is the same , Is the upgrading of ideas . The way out for traditional enterprises lies in their own learning ability , The Internet is just a tool .
- The Internet is a tool that all enterprises have the right to use , Not thinking . Internet thinking is something that doesn't exist at all . Thinking is a kind of thinking unique to human beings , The ability to coexist with living beings .
- Traditional enterprises should straighten out their mentality , The Internet can be used , But it can't be controlled . Oneself is the cornerstone of all development , We should firmly grasp the right to speak and the initiative .
- Traditional enterprises should keep sober , Just put the product on Taobao or jd.com to sell , It doesn't mean your Internet +. The Internet of traditional enterprises + Is its own Internet . How to use the Internet to improve efficiency 、 Improved process 、 Stimulate innovation , It is the key point that the enterprise should explore for a long time .
- The Internet is only the icing on the cake for traditional enterprises . Technology is evolving , When the next tool comes , You are still strong , And the Internet companies that were at their peak in those years may collapse in an instant .
- Artificial intelligence and big data are not the patents of Internet enterprises , They are just the equipment of an enterprise , Tools , Intelligence and statistical means .
Original address : This of the bell 40 Thinking , It explains why he became the richest man in China |
2. After watching 《 Providence 》 this 100 Sentence , I just understand what is transparent
Zheng He Island
- If one wants to do something , Remember two words : Don't take yourself too seriously , Don't treat others too badly . As far as this law is concerned , The world is black as a crow .
- The law of survival is simple , Is to bear what people can't bear , A man of ability cannot . Patience is a line , Can be another line , Between the two is the living space .
- Don't say “ I'm so tired ” this sentence , There is only one case to say , You're really tired to death , There's one last breath left . But there is a condition , You have to die , You can't live without death .
- No confidence to compete with the strong under the same rules , It only shows that you are weak .
- Perspective society in turn has 3 On every level : technology 、 System and culture . As small as a person , As big as a country 、 A nation , Any kind of destiny is the product of that kind of cultural attribute .
- There is no lord , doctrine 、 Where did the idea come from ? The Lord is everywhere . In short , The thing that governs people's choice of value is the Lord 、 Is the cultural attribute .
- The sticking point of traditional ideas lies in “ by ” In words , Depend on parents at home , Rely on friends when you go out , By God 、 Depending on Bodhisattva 、 By the grace of the emperor …… In a word, anything can do , Just don't depend on yourself , So I can only kneel in spirit .
- Truth and knowledge are useless , Just a useful condition , Use is useful .
- Only I feel 、 Realized , I can do it , What I can do is mine .
- Whether it's culture and art or survival art , There is Tao without skill , Art can be sought ; No way with skill , Stop at surgery .
Original address : After watching 《 Providence 》 this 100 Sentence , I just understand what is transparent |
Embrace open source
1. Vue Color Avatar: A pure front-end avatar generation website

This is a vector style avatar generator , You can match different material components , Create your own personalized avatar .
For example, the avatar I designed for myself :

in addition , Features you might be interested in :
- Visual component configuration bar
- Randomly generated Avatar , There is a certain probability of triggering colored eggs
- revoke / Restore change
- International multilingualism
Open source address : |
2. Warp: Known as the next generation terminal artifact
Silent king two

Warp, A super ox fork terminal, Claims to be 21 The end of the century , Not officially released yet , $20 million in financing .
Official website :https://www.warp.dev/
Warp stay GitHub It has also been open source , There are already 6.5k+ Of star 了 .
Open source address : GitHub - seanmonstar/warp: A super-easy, composable, web server framework for warp speeds. |
speech
1、 The only thing I can stick to : Whether my work is finished or not , I sleep the same . |
2、 Lu xun said :“ The dog barked in the village , All the other dogs barked at the same time , But they don't know why .” When turbidity becomes a normal , Innocence is a sin ! |
3、 No matter which step in life , |
picture
① How to describe Web3 technology ?

② The rest of you on the other end of your cell phone are uneasy

subscribe
This weekly releases every Friday , Will be updated synchronously in WeChat official account .
WeChat search “ Bi Xiaofan ” Or scan the QR code below , You can subscribe to My public number .

If it helps you , Remember Leaving a message. 、 give the thumbs-up 、 Pay more attention to Oh !
( End )
边栏推荐
- 337. house raiding III
- Create a form whose client area is 800 pixels by 600 pixels
- Janus feature draft
- Phi and phi (Mobius inversion + formula)
- Senior openstacker - Bloomberg, vexxhost upgraded to the Gold member of openinfra Foundation
- Method to determine whether it is an array
- 【CF#262 (Div. 2)】 A. Vasya and Socks
- Error occurred in pycharm DeprecatedEnv: Env FrozenLake-v0 not found (valid versions include [‘FrozenLake-v1‘])
- 資深OpenStacker - 彭博、Vexxhost昇級為OpenInfra基金會黃金成員
- Prototype and prototype chain
猜你喜欢

CMAP of Matplotlib

Niuke wrong question 3.1

Detailed explanation of mutationobserver
![[Xunwei dry goods] opencv test of Godson 2k1000 development board](/img/94/312bb1f0d5e8d49506f659ad23cd3a.jpg)
[Xunwei dry goods] opencv test of Godson 2k1000 development board

Xunwei dry goods | Ruixin micro rk3568 development board TFTP & NFS writing (Part 1)

如果要存 IP 地址,用什么数据类型比较好?99%人都会答错!

教育专家王中泽老师:家庭教育重在自己成长

Explain the difference between void 0 and undefined

Analysis of key points and difficulties of ES6 promise source code

The difference between arrow function and ordinary function
随机推荐
商汤科技积极复工,将大力投入数字哨兵的产能和部署
Concurrent tool class
Method to determine whether it is an array
The difference between arrow function and ordinary function
Leetcode-141. Linked List Cycle
Leetcode-104. Maximum Depth of Binary Tree
MS office level II wrong question record [6]
教育专家王中泽老师一招解决学生问题
Leetcode-647. Palindromic Substrings
MS office level II wrong question record [9]
R语言并行计算实战教程
Android和iOS逆向分析/安全检测/渗透测试框架
正则表达式匹配
Detailed explanation of mutationobserver
【CF#262 (Div. 2)】 A. Vasya and Socks
QT 基于QScrollArea的界面嵌套移动
并发工具类
Object. Specific implementation and difference between create() and new
【CF#697 (Div. 3)】 A - Odd Divisor
Interview question 17.08 Circus tower