实习生 - 为 运行 功能测试创建本地隧道
Intern - Create local tunnel to run functional tests
所以我开始使用 Intern 进行功能测试,到目前为止,我完成了所有的工作,包括单元测试和功能测试。
我关注了他们intern-tutorial
Whenever you need to run a full test against all platforms, use the test runner. When you are in the process of writing your tests and want to check them for correctness more quickly, you can either use just the Node.js client (for unit tests only) or create an alternate configuration file that only tests against a single local platform, like your local copy of Chrome or Firefox (for all tests, including functional tests).
我搜索了他们的文档,但没有找到关于本地的任何信息 "tunnels"。
我在 Gulp 上使用 Intern,我的本地主机是 localhost:3000,我想在 Mac.
上测试我的 Chrome 54
谢谢
我想 NullTunnel 是您要查找的内容?
我找到了答案。我不得不将隧道更改为 Local Selenium.
- Download the latest version of ChromeDriver
- Set tunnel to 'NullTunnel'
- Run chromedriver --port=4444 --url-base=wd/hub
- Set your environments capabilities to [ { browserName: 'chrome' } ]
- Run the test runner
观察:
不要忘记将 chromedriver
文件复制到您的项目根目录。
我不得不 运行 我的项目根 .\chromedriver --port=4444 --url-base=wd/hub
测试 运行ner 必须在新命令中 运行 line/terminal/shell
希望能帮助遇到同样问题的人。
所以我开始使用 Intern 进行功能测试,到目前为止,我完成了所有的工作,包括单元测试和功能测试。
我关注了他们intern-tutorial
Whenever you need to run a full test against all platforms, use the test runner. When you are in the process of writing your tests and want to check them for correctness more quickly, you can either use just the Node.js client (for unit tests only) or create an alternate configuration file that only tests against a single local platform, like your local copy of Chrome or Firefox (for all tests, including functional tests).
我搜索了他们的文档,但没有找到关于本地的任何信息 "tunnels"。
我在 Gulp 上使用 Intern,我的本地主机是 localhost:3000,我想在 Mac.
上测试我的 Chrome 54谢谢
我想 NullTunnel 是您要查找的内容?
我找到了答案。我不得不将隧道更改为 Local Selenium.
- Download the latest version of ChromeDriver
- Set tunnel to 'NullTunnel'
- Run chromedriver --port=4444 --url-base=wd/hub
- Set your environments capabilities to [ { browserName: 'chrome' } ]
- Run the test runner
观察:
不要忘记将
chromedriver
文件复制到您的项目根目录。我不得不 运行 我的项目根
.\chromedriver --port=4444 --url-base=wd/hub
测试 运行ner 必须在新命令中 运行 line/terminal/shell
希望能帮助遇到同样问题的人。