TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: What should the future of web/UI testing frameworks be like?

2 点作者 choudharism超过 3 年前
I&#x27;ve been working with web testing frameworks (Selenium and its wrappers &#x2F; Cypress &#x2F; Puppeteer &#x2F; Playwright &#x2F; others) for the last few years, but I asked myself what &quot;frameworks of the future&quot; should look like. I found myself not wanting things too wild or different from what we have today - just incremental improvements. Is that objectively true? What, if anything, is the next leap forward? Or are we close to them being &quot;good enough&quot; for the most part?<p>My top &quot;problems&quot;, in some shape or form, from existing products:<p>- Be faster to complete builds<p>- Have fewer false positives (or do accurate self-healing magic)<p>- Be easier to get started with (or be optionally codeless like Selenium IDE)<p>- Don&#x27;t be a walled garden (what if I want to run the same logical &#x27;test&#x27; across Playwright and Cypress)<p>- Help me write better tests (or be difficult to write bad tests within)<p>- Emulate mobile devices better than just viewport modification<p>What do the HN folks think?

2 条评论

onion2k超过 3 年前
<i>accurate self-healing magic</i><p>I don&#x27;t want this in a testing tool. If something isn&#x27;t working the way I built a test for then I want to know, even if it still <i>technically</i> works for the user.<p><i>Don&#x27;t be a walled garden (what if I want to run the same logical &#x27;test&#x27; across Playwright and Cypress)</i><p>This isn&#x27;t important. It&#x27;s fine to say &quot;You&#x27;ll need two copies of your test&quot;, and it&#x27;s not that hard to write tests to be &#x27;isomorphic&#x27; so they&#x27;ll run in multiple places. The fact is the number of people who run multiple test tools, or even move from one tool to another, is tiny.<p>Being open is great, but there&#x27;s no reason to change the design of your tool to make it easier to move. Just make it good, and leave porting tests between tools to the user.
choudharism超过 3 年前
To be clear, of course over time new paradigms will come in (AR &#x2F; VR &#x2F; other platforms) and testing will need to evolve to meet those use-cases - my question is centered around webapp testing as it stands today.