TwiScan
Hot
Communities
Account collections
Login
Register
English
日本語
한국의
简体中文
繁体中文
Register and share your invite link to earn from video plays and referrals.
Register now
卡颂
@kasong2048
🥴 OPC 5 年 📖《React设计原理》作者
Joined June 2020
172
Following
13.7K
Followers
卡颂
@kasong2048
2026.09.30 06:22
测试用例的问题是“大部分人(甚至 agent 的默认执行流程也是)将它当作 代码实现后的免费添头” 这么做的后果是:用例变成对源码的第三人称复述 “从代码到测试用例”其实和“从 spec 到 代码”一样,需要单独的工作流(而不是免费添头)。用例和代码一样也会腐败、冗余,需要定期维护、精简 前者甚至比后者重要得多,因为对 AI Coding 来说 code is cheap,重要的是信任,好的测试用例是信任的基石 基于此,当下社区的风潮是“不再考虑传统软件工程的测试金字塔,而是聚焦在 e2e” 因为通过设计 spec,某种程度上你可以在代码实现的同时兼顾用例质量(通过 BDD),这是对投入精力的权衡 并不是说 单元测试 不再重要,而是没有精力维护“好的单元测试”
Show more
0
0
6
10
1
Forward to community
Most Popular Users
Tibo
@thsottiaux
923.5K Followers
TheStreet
@TheStreet
1.2M Followers
The Wall Street Journal
@WSJ
22.3M Followers
Seeking Alpha
@SeekingAlpha
343.9K Followers
CNBC
@CNBC
6.3M Followers
Benzinga
@Benzinga
345.2K Followers
Serenity
@aleabitoreddit
1.1M Followers
Stocktwits
@Stocktwits
1.2M Followers
unusual_whales
@unusual_whales
5.4M Followers
zerohedge
@zerohedge
3.4M Followers
Yahoo Finance
@YahooFinance
2.1M Followers
Elon Musk
@elonmusk
241.5M Followers
New York Post
@nypost
4.2M Followers
Reuters
@Reuters
26.4M Followers
OpenAI
@OpenAI
5.5M Followers