{"action":"created","comment":{"url":"https://api.github.com/repos/sindresorhus/ava-docs/pulls/comments/57130161","id":57130161,"diff_hunk":"@@ -0,0 +1,955 @@\n+___\n+**备注**\n+\n+这是[readme.md](https://github.com/sindresorhus/ava/blob/master/readme.md)的简体中文翻译。这个[链接](https://github.com/sindresorhus/ava/compare/67bf0472133041f59ef469f737b696de05ae316b...master#diff-0730bb7c2e8f9ea2438b52e419dd86c9)用来查看本翻译与AVA 的master 分支是否有差别（如果你没有看到`readme.md`发生变化，那就意味着这份翻译文档是最新的）。\n+___\n+\n+# ![AVA](https://github.com/sindresorhus/ava/blob/master/media/header.png)\n+\n+> 未来的测试运行器\n+\n+[![Build Status: Linux](https://travis-ci.org/sindresorhus/ava.svg?branch=master)](https://travis-ci.org/sindresorhus/ava) [![Build status: Windows](https://ci.appveyor.com/api/projects/status/igogxrcmhhm085co/branch/master?svg=true)](https://ci.appveyor.com/project/sindresorhus/ava/branch/master) [![Coverage Status](https://coveralls.io/repos/sindresorhus/ava/badge.svg?branch=master&service=github)](https://coveralls.io/github/sindresorhus/ava?branch=master) [![Gitter](https://img.shields.io/badge/Gitter-Join_the_AVA_chat_%E2%86%92-00d06f.svg)](https://gitter.im/sindresorhus/ava)\n+\n+虽然JavaScript 是单线程，但在Node.js 里由于其异步的特性使得IO 可以并行。AVA 利用这个优点让你的测试可以并发执行，这对于IO 繁重的测试特别有用。另外，测试文件可以在不同的进程里并行运行，让每一个测试文件可以获得更好的性能和独立的环境。在Pageres 项目中从Mocha[切换](https://github.com/sindresorhus/pageres/commit/663be15acb3dd2eb0f71b1956ef28c2cd3fdeed0)到AVA 让测试时间从31秒下降到11秒。测试并发执行强制你写原子测试，意味着测试不需要依赖全局状态或者其他测试的状态，这是一件非常好的事情。  \n+\n+*如果你想贡献（问题、PRs 等），请先阅读我们的[贡献向导](contributing.md)。*  \n+\n+关注[AVA 的Twitter 账号](https://twitter.com/ava__js)以获取最新信息。  \n+\n+翻译: [Español](https://github.com/sindresorhus/ava-docs/blob/master/es_ES/readme.md), [Français](https://github.com/sindresorhus/ava-docs/blob/master/fr_FR/readme.md), [日本語](https://github.com/sindresorhus/ava-docs/blob/master/ja_JP/readme.md), [Português](https://github.com/sindresorhus/ava-docs/blob/master/pt_BR/readme.md), [简体中文](https://github.com/sindresorhus/ava-docs/blob/master/zh_CN/readme.md)\n+\n+## 目录 \n+\n+- [用法](#用法)\n+- [CLI 用法](#cli)\n+- [配置](#配置)\n+- [文档](#文档)\n+- [API](#api)\n+- [断言](#断言)\n+- [小贴士](#小贴士)\n+- [FAQ](#faq)\n+- [秘方](#秘方)\n+- [支持](#支持)\n+- [相关](#相关)\n+- [链接](#链接)\n+- [团队](#团队)\n+\n+\n+## 为什么要用AVA?\n+\n+- 轻量和高效\n+- 简单的测试语法\n+- 并发运行测试\n+- 强制编写原子测试\n+- 没有隐藏的全局变量\n+- [为每个测试文件隔离环境](#隔离进程)\n+- [用ES2015编写测试](#支持es2015)\n+- [支持Promise](#支持promise)\n+- [支持Generator](#支持generator)\n+- [支持Async](#支持async)\n+- [支持Observable](#支持observable)\n+- [强化断言信息](#强化断言信息)\n+- [可选的TAP 输出显示](#可选的tap输出)\n+- [简明的堆栈跟踪](#简明的堆栈跟踪)\n+\n+\n+## 测试语法\n+\n+```js\n+import test from 'ava';\n+\n+test(t => {\n+    t.same([1, 2], [1, 2]);\n+});\n+```\n+\n+\n+## 用法\n+\n+### 在项目中添加AVA\n+\n+通过带`--inin`参数运行AVA 全局安装命令，将会添加AVA 到`package.json`：","path":"zh_CN/readme.md","position":71,"original_position":71,"commit_id":"1a4a3a6dcf9dc5ba63b0b908495caf511e0749b4","original_commit_id":"1a4a3a6dcf9dc5ba63b0b908495caf511e0749b4","user":{"login":"XadillaX","id":2842176,"avatar_url":"https://avatars.githubusercontent.com/u/2842176?v=3","gravatar_id":"","url":"https://api.github.com/users/XadillaX","html_url":"https://github.com/XadillaX","followers_url":"https://api.github.com/users/XadillaX/followers","following_url":"https://api.github.com/users/XadillaX/following{/other_user}","gists_url":"https://api.github.com/users/XadillaX/gists{/gist_id}","starred_url":"https://api.github.com/users/XadillaX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XadillaX/subscriptions","organizations_url":"https://api.github.com/users/XadillaX/orgs","repos_url":"https://api.github.com/users/XadillaX/repos","events_url":"https://api.github.com/users/XadillaX/events{/privacy}","received_events_url":"https://api.github.com/users/XadillaX/received_events","type":"User","site_admin":false},"body":"> 通过带 `--inin` 参数运行 AVA 全局安装命令，将会添加 AVA 到 `package.json`：","created_at":"2016-03-23T09:33:04Z","updated_at":"2016-03-23T09:33:04Z","html_url":"https://github.com/sindresorhus/ava-docs/pull/17#discussion_r57130161","pull_request_url":"https://api.github.com/repos/sindresorhus/ava-docs/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/sindresorhus/ava-docs/pulls/comments/57130161"},"html":{"href":"https://github.com/sindresorhus/ava-docs/pull/17#discussion_r57130161"},"pull_request":{"href":"https://api.github.com/repos/sindresorhus/ava-docs/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/sindresorhus/ava-docs/pulls/17","id":63472464,"html_url":"https://github.com/sindresorhus/ava-docs/pull/17","diff_url":"https://github.com/sindresorhus/ava-docs/pull/17.diff","patch_url":"https://github.com/sindresorhus/ava-docs/pull/17.patch","issue_url":"https://api.github.com/repos/sindresorhus/ava-docs/issues/17","number":17,"state":"open","locked":false,"title":"translate AVA docs to zh_CN","user":{"login":"zhaozhiming","id":1436694,"avatar_url":"https://avatars.githubusercontent.com/u/1436694?v=3","gravatar_id":"","url":"https://api.github.com/users/zhaozhiming","html_url":"https://github.com/zhaozhiming","followers_url":"https://api.github.com/users/zhaozhiming/followers","following_url":"https://api.github.com/users/zhaozhiming/following{/other_user}","gists_url":"https://api.github.com/users/zhaozhiming/gists{/gist_id}","starred_url":"https://api.github.com/users/zhaozhiming/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhaozhiming/subscriptions","organizations_url":"https://api.github.com/users/zhaozhiming/orgs","repos_url":"https://api.github.com/users/zhaozhiming/repos","events_url":"https://api.github.com/users/zhaozhiming/events{/privacy}","received_events_url":"https://api.github.com/users/zhaozhiming/received_events","type":"User","site_admin":false},"body":"HI, \r\nI like AVA and I want to translate the docs of AVA to Chinese, which will help more Chinese people study and use AVA.\r\n@all I have translated all the docs already, please review, thank you very much.\r\n\r\ntodo list:\r\n- [x] readme.md\r\n- [x] contributing.md\r\n- [x] code-of-conduct.md\r\n- [x] docs/recipes/browser-testing.md\r\n- [x] docs/recipes/code-coverage.md\r\n- [x] docs/recipes/endpoint-testing.md\r\n- [x] docs/recipes/typescript.md\r\n- [x] docs/recipes/watch-mode.md\r\n- [x] docs/recipes/when-to-use-plan.md","created_at":"2016-03-19T16:54:44Z","updated_at":"2016-03-23T09:33:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7e7be3621ebb9cea040d818ceb7d1d8bbfb8fc46","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sindresorhus/ava-docs/pulls/17/commits","review_comments_url":"https://api.github.com/repos/sindresorhus/ava-docs/pulls/17/comments","review_comment_url":"https://api.github.com/repos/sindresorhus/ava-docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sindresorhus/ava-docs/issues/17/comments","statuses_url":"https://api.github.com/repos/sindresorhus/ava-docs/statuses/1a4a3a6dcf9dc5ba63b0b908495caf511e0749b4","head":{"label":"zhaozhiming:zh_CN","ref":"zh_CN","sha":"1a4a3a6dcf9dc5ba63b0b908495caf511e0749b4","user":{"login":"zhaozhiming","id":1436694,"avatar_url":"https://avatars.githubusercontent.com/u/1436694?v=3","gravatar_id":"","url":"https://api.github.com/users/zhaozhiming","html_url":"https://github.com/zhaozhiming","followers_url":"https://api.github.com/users/zhaozhiming/followers","following_url":"https://api.github.com/users/zhaozhiming/following{/other_user}","gists_url":"https://api.github.com/users/zhaozhiming/gists{/gist_id}","starred_url":"https://api.github.com/users/zhaozhiming/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhaozhiming/subscriptions","organizations_url":"https://api.github.com/users/zhaozhiming/orgs","repos_url":"https://api.github.com/users/zhaozhiming/repos","events_url":"https://api.github.com/users/zhaozhiming/events{/privacy}","received_events_url":"https://api.github.com/users/zhaozhiming/received_events","type":"User","site_admin":false},"repo":{"id":54176506,"name":"ava-docs","full_name":"zhaozhiming/ava-docs","owner":{"login":"zhaozhiming","id":1436694,"avatar_url":"https://avatars.githubusercontent.com/u/1436694?v=3","gravatar_id":"","url":"https://api.github.com/users/zhaozhiming","html_url":"https://github.com/zhaozhiming","followers_url":"https://api.github.com/users/zhaozhiming/followers","following_url":"https://api.github.com/users/zhaozhiming/following{/other_user}","gists_url":"https://api.github.com/users/zhaozhiming/gists{/gist_id}","starred_url":"https://api.github.com/users/zhaozhiming/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhaozhiming/subscriptions","organizations_url":"https://api.github.com/users/zhaozhiming/orgs","repos_url":"https://api.github.com/users/zhaozhiming/repos","events_url":"https://api.github.com/users/zhaozhiming/events{/privacy}","received_events_url":"https://api.github.com/users/zhaozhiming/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zhaozhiming/ava-docs","description":"Localized docs for AVA","fork":true,"url":"https://api.github.com/repos/zhaozhiming/ava-docs","forks_url":"https://api.github.com/repos/zhaozhiming/ava-docs/forks","keys_url":"https://api.github.com/repos/zhaozhiming/ava-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zhaozhiming/ava-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zhaozhiming/ava-docs/teams","hooks_url":"https://api.github.com/repos/zhaozhiming/ava-docs/hooks","issue_events_url":"https://api.github.com/repos/zhaozhiming/ava-docs/issues/events{/number}","events_url":"https://api.github.com/repos/zhaozhiming/ava-docs/events","assignees_url":"https://api.github.com/repos/zhaozhiming/ava-docs/assignees{/user}","branches_url":"https://api.github.com/repos/zhaozhiming/ava-docs/branches{/branch}","tags_url":"https://api.github.com/repos/zhaozhiming/ava-docs/tags","blobs_url":"https://api.github.com/repos/zhaozhiming/ava-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zhaozhiming/ava-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zhaozhiming/ava-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/zhaozhiming/ava-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zhaozhiming/ava-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/zhaozhiming/ava-docs/languages","stargazers_url":"https://api.github.com/repos/zhaozhiming/ava-docs/stargazers","contributors_url":"https://api.github.com/repos/zhaozhiming/ava-docs/contributors","subscribers_url":"https://api.github.com/repos/zhaozhiming/ava-docs/subscribers","subscription_url":"https://api.github.com/repos/zhaozhiming/ava-docs/subscription","commits_url":"https://api.github.com/repos/zhaozhiming/ava-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/zhaozhiming/ava-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/zhaozhiming/ava-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/zhaozhiming/ava-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/zhaozhiming/ava-docs/contents/{+path}","compare_url":"https://api.github.com/repos/zhaozhiming/ava-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zhaozhiming/ava-docs/merges","archive_url":"https://api.github.com/repos/zhaozhiming/ava-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zhaozhiming/ava-docs/downloads","issues_url":"https://api.github.com/repos/zhaozhiming/ava-docs/issues{/number}","pulls_url":"https://api.github.com/repos/zhaozhiming/ava-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/zhaozhiming/ava-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/zhaozhiming/ava-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zhaozhiming/ava-docs/labels{/name}","releases_url":"https://api.github.com/repos/zhaozhiming/ava-docs/releases{/id}","deployments_url":"https://api.github.com/repos/zhaozhiming/ava-docs/deployments","created_at":"2016-03-18T05:34:09Z","updated_at":"2016-03-15T20:10:19Z","pushed_at":"2016-03-21T12:47:17Z","git_url":"git://github.com/zhaozhiming/ava-docs.git","ssh_url":"git@github.com:zhaozhiming/ava-docs.git","clone_url":"https://github.com/zhaozhiming/ava-docs.git","svn_url":"https://github.com/zhaozhiming/ava-docs","homepage":null,"size":306,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"sindresorhus:master","ref":"master","sha":"9849ccb8b6797f66827221c16796453013c9f9ef","user":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"repo":{"id":47849128,"name":"ava-docs","full_name":"sindresorhus/ava-docs","owner":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sindresorhus/ava-docs","description":"Localized docs for AVA","fork":false,"url":"https://api.github.com/repos/sindresorhus/ava-docs","forks_url":"https://api.github.com/repos/sindresorhus/ava-docs/forks","keys_url":"https://api.github.com/repos/sindresorhus/ava-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sindresorhus/ava-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sindresorhus/ava-docs/teams","hooks_url":"https://api.github.com/repos/sindresorhus/ava-docs/hooks","issue_events_url":"https://api.github.com/repos/sindresorhus/ava-docs/issues/events{/number}","events_url":"https://api.github.com/repos/sindresorhus/ava-docs/events","assignees_url":"https://api.github.com/repos/sindresorhus/ava-docs/assignees{/user}","branches_url":"https://api.github.com/repos/sindresorhus/ava-docs/branches{/branch}","tags_url":"https://api.github.com/repos/sindresorhus/ava-docs/tags","blobs_url":"https://api.github.com/repos/sindresorhus/ava-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sindresorhus/ava-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sindresorhus/ava-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/sindresorhus/ava-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sindresorhus/ava-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/sindresorhus/ava-docs/languages","stargazers_url":"https://api.github.com/repos/sindresorhus/ava-docs/stargazers","contributors_url":"https://api.github.com/repos/sindresorhus/ava-docs/contributors","subscribers_url":"https://api.github.com/repos/sindresorhus/ava-docs/subscribers","subscription_url":"https://api.github.com/repos/sindresorhus/ava-docs/subscription","commits_url":"https://api.github.com/repos/sindresorhus/ava-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/sindresorhus/ava-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/sindresorhus/ava-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/sindresorhus/ava-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/sindresorhus/ava-docs/contents/{+path}","compare_url":"https://api.github.com/repos/sindresorhus/ava-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sindresorhus/ava-docs/merges","archive_url":"https://api.github.com/repos/sindresorhus/ava-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sindresorhus/ava-docs/downloads","issues_url":"https://api.github.com/repos/sindresorhus/ava-docs/issues{/number}","pulls_url":"https://api.github.com/repos/sindresorhus/ava-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/sindresorhus/ava-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/sindresorhus/ava-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sindresorhus/ava-docs/labels{/name}","releases_url":"https://api.github.com/repos/sindresorhus/ava-docs/releases{/id}","deployments_url":"https://api.github.com/repos/sindresorhus/ava-docs/deployments","created_at":"2015-12-11T20:22:55Z","updated_at":"2016-03-21T15:34:16Z","pushed_at":"2016-03-23T08:16:48Z","git_url":"git://github.com/sindresorhus/ava-docs.git","ssh_url":"git@github.com:sindresorhus/ava-docs.git","clone_url":"https://github.com/sindresorhus/ava-docs.git","svn_url":"https://github.com/sindresorhus/ava-docs","homepage":null,"size":468,"stargazers_count":26,"watchers_count":26,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":5,"forks":19,"open_issues":5,"watchers":26,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sindresorhus/ava-docs/pulls/17"},"html":{"href":"https://github.com/sindresorhus/ava-docs/pull/17"},"issue":{"href":"https://api.github.com/repos/sindresorhus/ava-docs/issues/17"},"comments":{"href":"https://api.github.com/repos/sindresorhus/ava-docs/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/sindresorhus/ava-docs/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/sindresorhus/ava-docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sindresorhus/ava-docs/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/sindresorhus/ava-docs/statuses/1a4a3a6dcf9dc5ba63b0b908495caf511e0749b4"}}}}