{"_id":"totoro-test","_rev":"33-3d026208ddb9e2f4d14f0a420d8a66f9","name":"totoro-test","description":"A simple, easy-to-use and stable front-end unit testing tool.","dist-tags":{"latest":"0.1.5"},"versions":{"0.1.1":{"name":"totoro-test","version":"0.1.1","description":"test tools","homepage":"https://github.com/alipay/totoro","keywords":["qc","test","tool"],"author":{"name":"kangpangpang","email":"kangpangpang@gmail.com"},"contributors":[{"name":"fool2fish","email":"fool2fish@gmail.com"}],"engines":{"node":">= 0.8.17"},"dependencies":{"winston":"~0.6.2","express":"~3.1.0","underscore":"~1.4.4","socket.io":"~0.9.14","uuid":"~1.4.1","useragent":"~2.0.3","socket.io-client":"~0.9.11","colorful":"~2.0.2","semver":"~1.0.14","its":"*","totoro-thrill":"~0.5.0","totoro-queen-remote":"*","hogan.js":"~2.0.0","win-spawn":"~1.1.0","commander":"~1.1.1","async":"~0.2.6"},"devDependencies":{"grunt":"~0.4.1","grunt-contrib-jshint":"~0.3.0","jasmine-node":"~1.0.26","mocha":"*","should":"*"},"repository":{"type":"git","url":"git://github.com/alipay/totoro.git"},"bin":{"totoro":"./bin/totoro-test"},"preferGlobal":true,"readme":"# totoro-test\n\n**支付宝前端测试方案**\n\ntotoro-test 是一个可以把模块中的测试用例，发送到不同的浏览器上执行，并收集相应的测试结果的一个程序.\n\n**目前我们所有的测试都是针对 cmd 模块**\n\n## 安装\n```\nnpm install totoro -g\n```\n安装完成后\n\n```\ntotoro --verson\n```\n能够现实出正确的信息，说明已经安装成功，目前最新的版本是 0.0.6\n\n## 使用\n**主要有两种使用方式**\n\n### 标准方式\n直接进入模块的目录执行下面命令即可. \n\n```\ntotoro test\n```\n\n#### 使用演示\n下面是一个真实的例子，大家可以按照下面的步骤来体会整个执行流程\n\n* 检出模块代码\n\n```\ngit clone https://github.com/aralejs/base.git\n```\n* 进入到 base 目录中,执行\n\n```\ntotoro test\n```\n* 然后就会看到下面类似的结果\n\n```\nFirefox 19.0.0 (Windows 7) PASSED 20 tests\nIE 7.0.0 (Windows XP) PASSED 20 tests\nIE 8.0.0 (Windows 7) PASSED 20 tests\nChrome 25.0.1364 (Windows 7) PASSED 20 tests\nIE 9.0.0 (Windows 7) PASSED 20 tests\nIE 6.0.0 (Windows XP) PASSED 20 tests\nOpera 12.14.0 (Windows XP) PASSED 20 tests\nSafari 5.1.7 (Windows 7) PASSED 20 tests\nPASSED on all browsers\n```\n\n看到上面的内容就说明你已经会使用 totoro 了，是不是很简单。\n\n#### 注意事项（v0.0.6）\n1. 只支持标准的 cmd 模块，具体的模块样本可以参考 [arale](http://aralejs.org) 相关模块\n2. 只支持 [mocha](https://github.com/totorojs/totoro-test/blob/master/docs/test-frames/mocha.md) 测试套件。其中如果使用到 expect 需要在测试用例中 `require('expect)`\n3. 目前模块中单元测试用例需要在 **test** 或 **tests** 目录中\n4. 目前测试用例 totoro 只能识别 __*-spec.js__ 和 __*-test.js__ 这两种形式的测试文件.\n\n### 指定测试页\n如果我们的模块已经有了一个可以运行的测试页，我我们可以通过下面的命令 totoro 就会自动把你的测试页面在指定的刘浏览器中运行，并返回测试结果.\n\n```\ntotoro test -r _site/tests/runner.html\n```\n\n#### 注意事项(v0.0.6)\n1. 我们目前支持下面集中测试套件:\n    * mocha\n    * jasmine\n    * quint\n    * yuitest\n2. 在测试页面中对这些测试套件的引用必须显式引用，比如:\n\n```\n    <script src='../mocha.js'></script>\n```\n\n\n\n更多文档和介绍详见 [wiki](https://github.com/totorojs/totoro-test/wiki)\n\n","readmeFilename":"README.md","_id":"totoro-test@0.1.1","dist":{"shasum":"016d7aaec48c3bbaedfa167f2c19259efac7472a","tarball":"https://registry.npmjs.org/totoro-test/-/totoro-test-0.1.1.tgz","integrity":"sha512-dwsjrNZH+sAoS/cV+t+/5LVT9ZbhuG5lBd4Pyhq4VN8hFJ1odw/srF3flt+3iB8djZlvcAruz3Ft1a2sVs62/Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAQ2EfE/qu1GND2aHHyVCR13ydHH16YwXj14q+VIFi9nAiEAgvY2iLSx7PjoPMtCAEKMuDULuhNpjOmQqpMf1P2MfwQ="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"kangpangpang","email":"kangpangpang@gmail.com"},"maintainers":[{"name":"kangpangpang","email":"kangpangpang@gmail.com"}],"directories":{}},"0.1.2":{"name":"totoro-test","version":"0.1.2","description":"test tools","homepage":"https://github.com/alipay/totoro","keywords":["qc","test","tool"],"author":{"name":"kangpangpang","email":"kangpangpang@gmail.com"},"contributors":[{"name":"fool2fish","email":"fool2fish@gmail.com"}],"engines":{"node":">= 0.8.17"},"dependencies":{"winston":"~0.6.2","express":"~3.1.0","underscore":"*","socket.io":"~0.9.14","uuid":"~1.4.1","useragent":"~2.0.3","socket.io-client":"~0.9.11","colorful":"~2.0.2","semver":"~1.0.14","its":"*","totoro-queen-remote":"*","hogan.js":"~2.0.0","win-spawn":"~1.1.0","commander":"~1.1.1","async":"~0.2.6"},"devDependencies":{"grunt":"~0.4.1","grunt-contrib-jshint":"~0.3.0","jasmine-node":"~1.0.26","mocha":"*","should":"*"},"repository":{"type":"git","url":"git://github.com/alipay/totoro.git"},"bin":{"totoro-test":"./bin/totoro-test"},"preferGlobal":true,"readme":"# TOTORO-TEST\n\n命令行前端测试工具。\n\n工具可以自动生成runner，发送到多个浏览器中进行测试，返回测试结果。\n\n最新版本：v0.1.0 [Change Log](https://github.com/totorojs/totoro-test/wiki/change-log)\n\n---\n\n## 安装\n\n### 从 npm 安装\n\n```\nnpm install totoro -g\n\n```\n安装完毕后，运行\n\n```\ntotoro --verson\n```\n能够现实出正确的信息，说明已经安装成功。\n\n\n## 使用\n\n### 标准方式\n\n以 https://github.com/aralejs/base.git 为例\n\n```\ngit clone https://github.com/aralejs/base.git\ncd base\ntotoro test\n```\n然后就会看到下面类似的结果\n\n```\nFirefox 19.0.0 (Windows 7) PASSED 20 tests\nIE 7.0.0 (Windows XP) PASSED 20 tests\nIE 8.0.0 (Windows 7) PASSED 20 tests\nChrome 25.0.1364 (Windows 7) PASSED 20 tests\nIE 9.0.0 (Windows 7) PASSED 20 tests\nIE 6.0.0 (Windows XP) PASSED 20 tests\nOpera 12.14.0 (Windows XP) PASSED 20 tests\nSafari 5.1.7 (Windows 7) PASSED 20 tests\nPASSED on all browsers\n```\n\n看到上面的内容就说明你已经会使用 totoro 了，是不是很简单。\n\n#### 注意事项\n1. 目前只支持 CMD 模块。\n2. 测试脚本需放在 tests 或 test 文件夹中。\n3. 工具可以自动生成runner.html，test/tests 文件夹中，文件名包含 __spec__ 或 __test__ 字段的均视为测试脚本。\n4. 测试类库目前支持 [mocha](https://github.com/totorojs/totoro-test/wiki/mocha) 、[expect](https://github.com/totorojs/totoro-test/wiki/expect) 、 [sinon](https://github.com/totorojs/totoro-test/wiki/sinon) 和 [eventSimulate](https://github.com/aralejs/event-simulate)组合。除mocha外，其他均需要通过 `require` 引入。\n\n### 指定 runner 进行测试\n\n如果我们的模块已经有了一个可以运行的测试页，我我们可以通过下面的命令 totoro 就会自动把你的测试页面在指定的刘浏览器中运行，并返回测试结果.\n\n```\ntotoro test -runner _site/tests/runner.html\n```\n\n#### 注意事项\n\n1. 我们目前支持 mocha, jasmine, qunit 和 yuitest 4种测试套件:\n2. 在测试页面中对这些测试套件的引用必须单独且不更改名称，比如:\n\n```\n    <script src='../mocha.js'></script>\n```\n\n\n\n更多文档和介绍详见 [wiki](https://github.com/totorojs/totoro-test/wiki)\n\n","readmeFilename":"README.md","_id":"totoro-test@0.1.2","dist":{"shasum":"b8bfabebae3fb1770564792859c236df2feafbcb","tarball":"https://registry.npmjs.org/totoro-test/-/totoro-test-0.1.2.tgz","integrity":"sha512-YBLjMX5/6/qI+jHeFIcv3hpI1HG1c6ns/qghP+wdq3Da7s0JNbM7p3aDvbLOzL+yQ/xoghtFsm8rfw4CwAPS0Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE1KI5hD7eTRkmQbA0yEC2YaKnQMmzevktIANSQpqhE9AiEAzJMpvLJUQ8al8CfFGMlp7fuaVhljY25gSumxpFzkcFg="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"kangpangpang","email":"kangpangpang@gmail.com"},"maintainers":[{"name":"kangpangpang","email":"kangpangpang@gmail.com"}],"directories":{}},"0.1.3":{"name":"totoro-test","version":"0.1.3","description":"test tools","homepage":"https://github.com/alipay/totoro","keywords":["qc","test","tool"],"author":{"name":"kangpangpang","email":"kangpangpang@gmail.com"},"contributors":[{"name":"fool2fish","email":"fool2fish@gmail.com"}],"engines":{"node":">= 0.8.17"},"dependencies":{"winston":"~0.6.2","express":"~3.1.0","underscore":"*","socket.io":"~0.9.14","uuid":"~1.4.1","useragent":"~2.0.3","socket.io-client":"~0.9.11","colorful":"~2.0.2","semver":"~1.0.14","its":"*","totoro-queen-remote":"*","hogan.js":"~2.0.0","win-spawn":"~1.1.0","commander":"~1.1.1","async":"~0.2.6"},"devDependencies":{"grunt":"~0.4.1","grunt-contrib-jshint":"~0.3.0","jasmine-node":"~1.0.26","mocha":"*","should":"*"},"repository":{"type":"git","url":"git://github.com/alipay/totoro.git"},"bin":{"totoro-test":"./bin/totoro-test"},"preferGlobal":true,"readme":"# TOTORO-TEST\n\n命令行前端测试工具。\n\n工具可以自动生成runner，发送到多个浏览器中进行测试，返回测试结果。\n\n最新版本：v0.1.0 [Change Log](https://github.com/totorojs/totoro-test/wiki/change-log)\n\n---\n\n## 安装\n\n### 从 npm 安装\n\n```\nnpm install totoro -g\n\n```\n安装完毕后，运行\n\n```\ntotoro --verson\n```\n能够现实出正确的信息，说明已经安装成功。\n\n\n## 使用\n\n### 标准方式\n\n以 https://github.com/aralejs/base.git 为例\n\n```\ngit clone https://github.com/aralejs/base.git\ncd base\ntotoro test\n```\n然后就会看到下面类似的结果\n\n```\nFirefox 19.0.0 (Windows 7) PASSED 20 tests\nIE 7.0.0 (Windows XP) PASSED 20 tests\nIE 8.0.0 (Windows 7) PASSED 20 tests\nChrome 25.0.1364 (Windows 7) PASSED 20 tests\nIE 9.0.0 (Windows 7) PASSED 20 tests\nIE 6.0.0 (Windows XP) PASSED 20 tests\nOpera 12.14.0 (Windows XP) PASSED 20 tests\nSafari 5.1.7 (Windows 7) PASSED 20 tests\nPASSED on all browsers\n```\n\n看到上面的内容就说明你已经会使用 totoro 了，是不是很简单。\n\n#### 注意事项\n1. 目前只支持 CMD 模块。\n2. 测试脚本需放在 tests 或 test 文件夹中。\n3. 工具可以自动生成runner.html，test/tests 文件夹中，文件名包含 __spec__ 或 __test__ 字段的均视为测试脚本。\n4. 测试类库目前支持 [mocha](https://github.com/totorojs/totoro-test/wiki/mocha) 、[expect](https://github.com/totorojs/totoro-test/wiki/expect) 、 [sinon](https://github.com/totorojs/totoro-test/wiki/sinon) 和 [eventSimulate](https://github.com/aralejs/event-simulate)组合。除mocha外，其他均需要通过 `require` 引入。\n\n### 指定 runner 进行测试\n\n如果我们的模块已经有了一个可以运行的测试页，我我们可以通过下面的命令 totoro 就会自动把你的测试页面在指定的刘浏览器中运行，并返回测试结果.\n\n```\ntotoro test -runner _site/tests/runner.html\n```\n\n#### 注意事项\n\n1. 我们目前支持 mocha, jasmine, qunit 和 yuitest 4种测试套件:\n2. 在测试页面中对这些测试套件的引用必须单独且不更改名称，比如:\n\n```\n    <script src='../mocha.js'></script>\n```\n\n\n\n更多文档和介绍详见 [wiki](https://github.com/totorojs/totoro-test/wiki)\n\n","readmeFilename":"README.md","_id":"totoro-test@0.1.3","dist":{"shasum":"c3b459d905b0080b5d62cc0e082f55578b2c2dfc","tarball":"https://registry.npmjs.org/totoro-test/-/totoro-test-0.1.3.tgz","integrity":"sha512-OaHlbckI2JXWxS5DimSLV6reiDZYm3CBZPLmqnkKG8vBEz3ivw74jSG5VCvT4QQDHs5GBbkjv3glUzub5tXMcw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE3J6HmNpKCoPeagkiRiJRXLs3e4UulyU+qzsV0cBl3KAiAJVdd1P+u/ej1RlMoN+pvMW/STa0uqyhZdNuMjZPn8Vw=="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"kangpangpang","email":"kangpangpang@gmail.com"},"maintainers":[{"name":"kangpangpang","email":"kangpangpang@gmail.com"}],"directories":{}},"0.1.4":{"name":"totoro-test","version":"0.1.4","description":"test tools","homepage":"https://github.com/alipay/totoro","keywords":["qc","test","tool"],"author":{"name":"kangpangpang","email":"kangpangpang@gmail.com"},"contributors":[{"name":"fool2fish","email":"fool2fish@gmail.com"}],"engines":{"node":">= 0.8.17"},"dependencies":{"winston":"~0.6.2","express":"~3.1.0","underscore":"*","socket.io":"~0.9.14","uuid":"~1.4.1","useragent":"~2.0.3","socket.io-client":"~0.9.11","colorful":"~2.0.2","semver":"~1.0.14","its":"*","totoro-queen-remote":"*","hogan.js":"~2.0.0","win-spawn":"~1.1.0","commander":"~1.1.1","async":"~0.2.6"},"devDependencies":{"grunt":"~0.4.1","grunt-contrib-jshint":"~0.3.0","jasmine-node":"~1.0.26","mocha":"*","should":"*"},"repository":{"type":"git","url":"git://github.com/alipay/totoro.git"},"bin":{"totoro-test":"./bin/totoro-test"},"preferGlobal":true,"readme":"# TOTORO-TEST\n\n命令行前端测试工具。\n\n工具可以自动生成runner，发送到多个浏览器中进行测试，返回测试结果。\n\n最新版本：v0.1.4 [Change Log](https://github.com/totorojs/totoro-test/wiki/change-log)\n\n---\n\n## 安装\n\n### 从 npm 安装\n\n```\nnpm install totoro-test -g\n\n```\n安装完毕后，运行\n\n```\ntotoro-test --verson\n```\n输出 **0.1.4**，说明已经安装成功。\n\n\n## 使用\n\n### 标准方式\n\n以 https://github.com/aralejs/base.git 为例\n\n```\ngit clone https://github.com/aralejs/base.git\ncd base\ntotoro-test\n```\n然后就会看到下面类似的结果\n\n```\nFirefox 19.0.0 (Windows 7) PASSED 20 tests\nIE 7.0.0 (Windows XP) PASSED 20 tests\nIE 8.0.0 (Windows 7) PASSED 20 tests\nChrome 25.0.1364 (Windows 7) PASSED 20 tests\nIE 9.0.0 (Windows 7) PASSED 20 tests\nIE 6.0.0 (Windows XP) PASSED 20 tests\nOpera 12.14.0 (Windows XP) PASSED 20 tests\nSafari 5.1.7 (Windows 7) PASSED 20 tests\nPASSED on all browsers\n```\n\n看到上面的内容就说明你已经会使用 totoro-test 了，是不是很简单。\n\n#### 注意事项\n1. 目前只支持 CMD 模块。\n2. 测试脚本需放在 tests 或 test 文件夹中。\n3. 工具可以自动生成runner.html，test/tests 文件夹中，文件名包含 __spec__ 或 __test__ 字段的均视为测试脚本。\n4. 测试类库目前支持 [mocha](https://github.com/totorojs/totoro-test/wiki/mocha) 、[expect](https://github.com/totorojs/totoro-test/wiki/expect) 、 [sinon](https://github.com/totorojs/totoro-test/wiki/sinon) 和 [eventSimulate](https://github.com/aralejs/event-simulate)组合。除mocha外，其他均需要通过 `require` 引入。\n\n### 指定 runner 进行测试\n\n如果我们的模块已经有了一个可以运行的测试页，我我们可以通过下面的命令 totoro 就会自动把你的测试页面在指定的刘浏览器中运行，并返回测试结果.\n\n```\ntotoro-test -runner _site/tests/runner.html\n```\n\n### 自定义测试适配器\n```\ntotoro-test --adapter=tests/totoro-adapter.js\n```\n\n\n#### 注意事项\n\n1. 我们目前支持 mocha 种测试套件:\n2. 在测试页面中对这些测试套件的引用必须单独且不更改名称，比如:\n\n```\n    <script src='../mocha.js'></script>\n```\n\n\n\n更多文档和介绍详见 [wiki](https://github.com/totorojs/totoro-test/wiki)\n\n","readmeFilename":"README.md","_id":"totoro-test@0.1.4","dist":{"shasum":"3dd56dc8fe25cb9c9db4aad5e1b5207ddf72325d","tarball":"https://registry.npmjs.org/totoro-test/-/totoro-test-0.1.4.tgz","integrity":"sha512-gCqAtydiSbXCO5ZOOfZrOTntd7+Fi7IbYWNXM3HiC2LGPi/r/76GM/SDYXBcGprXboBksD4n/YSYJFglFD7ruQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC0CTxwgf3niwR7TH2zxfYYoKYp8ZRPshmT1zysmCrBRwIgVwNu33g0SkbPBggZn63H7SOM+Z6hyZXVIdUFuwIXG0o="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"kangpangpang","email":"kangpangpang@gmail.com"},"maintainers":[{"name":"kangpangpang","email":"kangpangpang@gmail.com"}],"directories":{}},"0.1.5":{"name":"totoro-test","version":"0.1.5","description":"test tools","homepage":"https://github.com/alipay/totoro","keywords":["qc","test","tool"],"author":{"name":"kangpangpang","email":"kangpangpang@gmail.com"},"contributors":[{"name":"fool2fish","email":"fool2fish@gmail.com"}],"engines":{"node":">= 0.8.17"},"dependencies":{"winston":"~0.6.2","express":"~3.1.0","underscore":"*","socket.io":"~0.9.14","uuid":"~1.4.1","useragent":"~2.0.3","socket.io-client":"~0.9.11","colorful":"~2.0.2","semver":"~1.0.14","its":"*","totoro-queen-remote":"*","hogan.js":"~2.0.0","win-spawn":"~1.1.0","commander":"~1.1.1","async":"~0.2.6"},"devDependencies":{"grunt":"~0.4.1","grunt-contrib-jshint":"~0.3.0","jasmine-node":"~1.0.26","mocha":"*","should":"*"},"repository":{"type":"git","url":"git://github.com/alipay/totoro.git"},"bin":{"totoro-test":"./bin/totoro-test"},"preferGlobal":true,"readme":"# TOTORO-TEST\n\n命令行前端测试工具。\n\n工具可以自动生成runner，发送到多个浏览器中进行测试，返回测试结果。\n\n最新版本：v0.1.5 [Change Log](https://github.com/totorojs/totoro-test/wiki/change-log)\n\n---\n\n## 安装\n\n### 从 npm 安装\n\n```\nnpm install totoro-test -g\n\n```\n安装完毕后，运行\n\n```\ntotoro-test --verson\n```\n输出 **0.1.5**，说明已经安装成功。\n\n\n## 使用\n\n### 标准方式\n\n以 https://github.com/aralejs/base.git 为例\n\n```\ngit clone https://github.com/aralejs/base.git\ncd base\ntotoro-test\n```\n然后就会看到下面类似的结果\n\n```\nFirefox 19.0.0 (Windows 7) PASSED 20 tests\nIE 7.0.0 (Windows XP) PASSED 20 tests\nIE 8.0.0 (Windows 7) PASSED 20 tests\nChrome 25.0.1364 (Windows 7) PASSED 20 tests\nIE 9.0.0 (Windows 7) PASSED 20 tests\nIE 6.0.0 (Windows XP) PASSED 20 tests\nOpera 12.14.0 (Windows XP) PASSED 20 tests\nSafari 5.1.7 (Windows 7) PASSED 20 tests\nPASSED on all browsers\n```\n\n看到上面的内容就说明你已经会使用 totoro-test 了，是不是很简单。\n\n#### 注意事项\n1. 目前只支持 CMD 模块。\n2. 测试脚本需放在 tests 或 test 文件夹中。\n3. 工具可以自动生成runner.html，test/tests 文件夹中，文件名包含 __spec__ 或 __test__ 字段的均视为测试脚本。\n4. 测试类库目前支持 [mocha](https://github.com/totorojs/totoro-test/wiki/mocha) 、[expect](https://github.com/totorojs/totoro-test/wiki/expect) 、 [sinon](https://github.com/totorojs/totoro-test/wiki/sinon) 和 [eventSimulate](https://github.com/aralejs/event-simulate)组合。除mocha外，其他均需要通过 `require` 引入。\n\n### 指定 runner 进行测试\n\n如果我们的模块已经有了一个可以运行的测试页，我我们可以通过下面的命令 totoro 就会自动把你的测试页面在指定的刘浏览器中运行，并返回测试结果.\n\n```\ntotoro-test -runner _site/tests/runner.html\n```\n\n### 自定义测试适配器\n```\ntotoro-test --adapter=tests/totoro-adapter.js\n```\n\n\n#### 注意事项\n\n1. 我们目前支持 mocha 种测试套件:\n2. 在测试页面中对这些测试套件的引用必须单独且不更改名称，比如:\n\n```\n    <script src='../mocha.js'></script>\n```\n\n\n\n更多文档和介绍详见 [wiki](https://github.com/totorojs/totoro-test/wiki)\n\n","readmeFilename":"README.md","_id":"totoro-test@0.1.5","dist":{"shasum":"5b4373784139e773a2fe7f2730d777c70c75e0cd","tarball":"https://registry.npmjs.org/totoro-test/-/totoro-test-0.1.5.tgz","integrity":"sha512-E9aRykHeAvm1izbTH01CCerT0PzAQW/A640HPgl7k8u/++L0ssJshdcjwQJMn8mLtayFB+l6hA/vRDIN12ntQg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCuL5523NNCdVrMxVx1kiod61ERv7djxzZY3u+J2pxwuAIgIJ2NqJuwgUP8ZoRz2EMBbDgVSq5+ny1/Ehm1vPUt/OE="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"kangpangpang","email":"kangpangpang@gmail.com"},"maintainers":[{"name":"kangpangpang","email":"kangpangpang@gmail.com"}],"directories":{}}},"readme":"# totoro-test\n\n**支付宝前端测试方案**\n\ntotoro-test 是一个可以把模块中的测试用例，发送到不同的浏览器上执行，并收集相应的测试结果的一个程序.\n\n**目前我们所有的测试都是针对 cmd 模块**\n\n## 安装\n```\nnpm install totoro -g\n```\n安装完成后\n\n```\ntotoro --verson\n```\n能够现实出正确的信息，说明已经安装成功，目前最新的版本是 0.0.6\n\n## 使用\n**主要有两种使用方式**\n\n### 标准方式\n直接进入模块的目录执行下面命令即可. \n\n```\ntotoro test\n```\n\n#### 使用演示\n下面是一个真实的例子，大家可以按照下面的步骤来体会整个执行流程\n\n* 检出模块代码\n\n```\ngit clone https://github.com/aralejs/base.git\n```\n* 进入到 base 目录中,执行\n\n```\ntotoro test\n```\n* 然后就会看到下面类似的结果\n\n```\nFirefox 19.0.0 (Windows 7) PASSED 20 tests\nIE 7.0.0 (Windows XP) PASSED 20 tests\nIE 8.0.0 (Windows 7) PASSED 20 tests\nChrome 25.0.1364 (Windows 7) PASSED 20 tests\nIE 9.0.0 (Windows 7) PASSED 20 tests\nIE 6.0.0 (Windows XP) PASSED 20 tests\nOpera 12.14.0 (Windows XP) PASSED 20 tests\nSafari 5.1.7 (Windows 7) PASSED 20 tests\nPASSED on all browsers\n```\n\n看到上面的内容就说明你已经会使用 totoro 了，是不是很简单。\n\n#### 注意事项（v0.0.6）\n1. 只支持标准的 cmd 模块，具体的模块样本可以参考 [arale](http://aralejs.org) 相关模块\n2. 只支持 [mocha](https://github.com/totorojs/totoro-test/blob/master/docs/test-frames/mocha.md) 测试套件。其中如果使用到 expect 需要在测试用例中 `require('expect)`\n3. 目前模块中单元测试用例需要在 **test** 或 **tests** 目录中\n4. 目前测试用例 totoro 只能识别 __*-spec.js__ 和 __*-test.js__ 这两种形式的测试文件.\n\n### 指定测试页\n如果我们的模块已经有了一个可以运行的测试页，我我们可以通过下面的命令 totoro 就会自动把你的测试页面在指定的刘浏览器中运行，并返回测试结果.\n\n```\ntotoro test -r _site/tests/runner.html\n```\n\n#### 注意事项(v0.0.6)\n1. 我们目前支持下面集中测试套件:\n    * mocha\n    * jasmine\n    * quint\n    * yuitest\n2. 在测试页面中对这些测试套件的引用必须显式引用，比如:\n\n```\n    <script src='../mocha.js'></script>\n```\n\n\n\n更多文档和介绍详见 [wiki](https://github.com/totorojs/totoro-test/wiki)\n\n","maintainers":[{"name":"kangpangpang","email":"kangpangpang@gmail.com"}],"time":{"modified":"2022-06-27T18:59:34.738Z","created":"2013-04-12T02:41:55.063Z","0.1.1":"2013-04-12T02:42:11.359Z","0.1.2":"2013-04-15T02:19:50.711Z","0.1.3":"2013-04-15T04:00:55.994Z","0.1.4":"2013-04-15T13:02:26.796Z","0.1.5":"2013-04-17T02:35:55.222Z","0.1.6":"2013-04-21T10:15:25.240Z"},"author":{"name":"kangpangpang","email":"kangpangpang@gmail.com"},"repository":{"type":"git","url":"git@github.com:totorojs/totoro-test.git"}}