首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >PHPUnit一直跳过测试-Win7 7-64,XAMPP,Yii

PHPUnit一直跳过测试-Win7 7-64,XAMPP,Yii
EN

Stack Overflow用户
提问于 2012-09-20 14:23:18
回答 1查看 996关注 0票数 1

PHP单元在运行时跳过了所有的测试。我正在运行一个开发环境。这里是我的环境:

  • Windows 7 Pro 64位
  • Apache 2.4
  • PHP 5.4.4
  • PHPUnit 3.7.0
  • 硒1.2.8
  • Yii 1.1.10

每次我为Yii运行函数(或任何测试)时,我都会得到以下输出。

代码语言:javascript
复制
C:\xampp\htdocs\mm\protected\tests>phpunit --verbose functional
PHPUnit 3.7.0 by Sebastian Bergmann.

Configuration read from C:\xampp\htdocs\mm\protected\tests\phpunit.xml

SSSSSS

Time: 12 seconds, Memory: 3.50Mb

There were 6 skipped tests:

1) SiteTest::testIndex
Could not connect to the Selenium Server on localhost:4444.

C:\xampp\php\phpunit:46

2) SiteTest::testContact
Could not connect to the Selenium Server on localhost:4444.

C:\xampp\php\phpunit:46

3) SiteTest::testLoginLogout
Could not connect to the Selenium Server on localhost:4444.

C:\xampp\php\phpunit:46

4) SiteTest::testIndex
Could not connect to the Selenium Server on localhost:4444.

C:\xampp\php\phpunit:46

5) SiteTest::testContact
Could not connect to the Selenium Server on localhost:4444.

C:\xampp\php\phpunit:46

6) SiteTest::testLoginLogout
Could not connect to the Selenium Server on localhost:4444.

C:\xampp\php\phpunit:46
OK, but incomplete or skipped tests!
Tests: 6, Assertions: 0, Skipped: 6.

C:\xampp\htdocs\mm\protected\tests>

注意:以前从未收到无法连接到Selenium服务器的消息,也没有更改任何内容。还在发帖调查这个问题。

谢谢你的帮忙!

EN

回答 1

Stack Overflow用户

发布于 2012-12-05 04:26:12

RTM在官方的Yii指南中有一个叫功能测试的章节。它的开头是:

在阅读本节之前,建议您阅读Selenium文档。

本章以以下注记结束,左缘有一个大号:

提示:在运行功能测试之前,必须启动Selenium-RC服务器。这可以通过在Selenium服务器安装目录下执行java -jar selenium-server.jar命令来完成。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/12514731

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档