Is there a way I can have PHPUnit just continue after an error?For example, I have a large test suite (400+ steps) and I would prefer that if say, an element is not开发者_JAVA技巧 found, it doesn\'t s
How can I automatically start and stop the Selenium RC server when I run my phpunit tests? I thought I could create a little bash script that does something like this (does not work though):
I am writing unit test for an existing code which is like this class someClass { public function __construct() { ... }
I was reading my project\'s code coverage report, and I noticed something strange: a line was uncovered, but I was sure that line got executed during the tests. So, I added a var_dump() before it and
My tests are running pretty slow... I\'ve got under 100 tests, but it still takes over 10 seconds开发者_开发百科 to run on a fast machine. I tried disabling code coverage, and using caching for the co
Here is my problem. I have a test suite that is testing a few classes. My classes all use dependency injection.
How to pass a custom php.ini to phpunit? The source uses get_cfg_var instead of ini_get so unfortunately it doesn\'t use values set by ini_set, -d option etc.
I have ~700 tests with ~1500 assertions, tests are running on sqlite on RAM drive. I run this using phpunit /dir/name, without any additional suite setup.
I am running Zend Framework 1.10 on Ubuntu 10.04, just installed Xdebug to generate code coverage, via PECL.
I\'m really new to testing so go easy on me. I\'ve got Seleneium working with Pear, PHPUnit, and Sauce Labs class SauceOnDemandTestCase.php. I can run tests and did a simple on just fine. But now I\'m