当前位置:网站首页>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 :

Strict selection of accurate test practice ( Advanced )

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 :

  1. self-healing (Self-Healing) technology
  2. machine learning (Machine Learning) technology

Open source address :

Future trends in automated testing

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 :

Google: How to do code review?

🦧 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 :

Chrome Devtools Debugging tips

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 )

  1. 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 .
  2. 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 ?
  3. 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 .
  4. 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 .
  5. 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 .
  6. 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 .
  7. 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 .
  8. 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 .
  9. 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 .
  10. 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

  1. 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 .
  2. 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 .
  3. 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 .
  4. No confidence to compete with the strong under the same rules , It only shows that you are weak .
  5. 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 .
  6. 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 .
  7. 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 .
  8. Truth and knowledge are useless , Just a useful condition , Use is useful .
  9. Only I feel 、 Realized , I can do it , What I can do is mine .
  10. 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 :

https://github.com/Codennnn/vue-color-avatar

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 ,
Someone is looking up at you ,
There are also people looking down on you ,
You look up and feel inferior , Bow your head and be proud of yourself ,
Only look straight , To see the real self .

—— Yang jiang

picture

① How to describe Web3 technology ?

10fd0c4a560e79555df03e1251d29168.png

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

cb112ef8515aff7a47d9c9fdb3061f4e.png

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 )

原网站

版权声明
本文为[Bixiaofan]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/162/202206110713170693.html