Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1ce9738

Browse files
committed
Merge remote-tracking branch 'fork-origin/master' into spanish
2 parents dc44a9e + 9d3fbd9 commit 1ce9738

File tree

3 files changed

+74
-31
lines changed

3 files changed

+74
-31
lines changed

‎.all-contributorsrc

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,43 @@
240240
"contributions": [
241241
"content"
242242
]
243+
},
244+
{
245+
"login": "cncolder",
246+
"name": "Yanlin Jiang",
247+
"avatar_url": "https://avatars3.githubusercontent.com/u/127009?v=4",
248+
"profile": "https://tarojsx.github.io",
249+
"contributions": [
250+
"content"
251+
]
252+
},
253+
{
254+
"login": "sanguino",
255+
"name": "sanguino",
256+
"avatar_url": "https://avatars2.githubusercontent.com/u/2077168?v=4",
257+
"profile": "https://github.com/sanguino",
258+
"contributions": [
259+
"content"
260+
]
261+
},
262+
{
263+
"login": "MorganGeek",
264+
"name": "Morgan",
265+
"avatar_url": "https://avatars0.githubusercontent.com/u/3721240?v=4",
266+
"profile": "https://github.com/MorganGeek",
267+
"contributions": [
268+
"content"
269+
]
270+
},
271+
{
272+
"login": "lukasbischof",
273+
"name": "Lukas Bischof",
274+
"avatar_url": "https://avatars0.githubusercontent.com/u/8350985?v=4",
275+
"profile": "https://luk4s.dev",
276+
"contributions": [
277+
"test",
278+
"content"
279+
]
243280
}
244281
],
245282
"projectName": "javascript-testing-best-practices",

‎readme-zh-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1340,7 +1340,7 @@ test('When no products exist, show the appropriate message', () => {
13401340

13411341
## ⚪ ️ 3.7 写几个跨越整个系统的端到端测试
13421342

1343-
:white_check_mark: **建议:** 虽然 E2E (端到端) 通常表示在真实浏览器中进行 UI 测试(见 3.6),但某些情况下,它们表示覆盖整个系统的测试,包括真正的后端。后一种测试非常有价值,因为它们涵盖了前端和后端之间的集成 bug,这些 bug 可能是由于沟通 schema 时产生误会导致的。它们也是一种有效的方法来发现 backend-to-backend 集成问题 (例如微服务 A 将错误的信息发送给微服务 B) 甚至检测部署失败,目前后端没有像 [Cypress](https://www.cypress.io/) 和 [Pupeteer](https://github.com/GoogleChrome/puppeteer) 友好的 UI 框架一样友好且成熟的 E2E 框架。这种测试的缺点是,配置一个包含如此多组件的环境的成本很高,而且大多数组件都很脆弱——假设有 50 个微服务,即使其中一个失败,整个 E2E 也会失败。出于这个原因,我们应该少用这种技术,大概1-10个就够了。也就是说,即使是少量的 E2E 测试也很有可能捕获它们所针对的问题——部署和集成故障。建议在与生产环境相似的预发运行它们。
1343+
:white_check_mark: **建议:** 虽然 E2E (端到端) 通常表示在真实浏览器中进行 UI 测试(见 3.6),但某些情况下,它们表示覆盖整个系统的测试,包括真正的后端。后一种测试非常有价值,因为它们涵盖了前端和后端之间的集成 bug,这些 bug 可能是由于沟通 schema 时产生误会导致的。它们也是一种有效的方法来发现 backend-to-backend 集成问题 (例如微服务 A 将错误的信息发送给微服务 B) 甚至检测部署失败,目前后端没有像 [Cypress](https://www.cypress.io/) 和 [Puppeteer](https://github.com/GoogleChrome/puppeteer) 友好的 UI 框架一样友好且成熟的 E2E 框架。这种测试的缺点是,配置一个包含如此多组件的环境的成本很高,而且大多数组件都很脆弱——假设有 50 个微服务,即使其中一个失败,整个 E2E 也会失败。出于这个原因,我们应该少用这种技术,大概1-10个就够了。也就是说,即使是少量的 E2E 测试也很有可能捕获它们所针对的问题——部署和集成故障。建议在与生产环境相似的预发运行它们。
13441344

13451345
<br/>
13461346

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /