Revision #39 has been created by marcovtwout on Mar 4, 2015, 11:16:51 AM with the memo:
Updated testing instructions for latest NetBeans
« previous (#38)
Changes
Title
unchanged
NetBeans IDE and Yii projects
Category
unchanged
Tutorials
Yii version
unchanged
Tags
unchanged
IDE, Selenium, PHPUnit, XDebug, NetBeans
Content
changed
[...]
## 3. Testing
To run functional tests and unit tests in Yii, recommended is installing PHPUnit and SeleniumRC.
- Install PHPUnit
- Follow [the official version 3.6 installation instructions](http
s://
www.phpunit.de/manual/
3.6current/en/installation.html).
- Open "Tools > Options > PHP >
Unit TestingFrameworks & Tools -> PHPUnit" and set the correct path to the launch script. This is phpunit.bat in Windows and usually /usr/bin/phpunit in Linux.
- Install SeleniumRC with one of these two methods:
- Through NetBeans plugins (may be outdated):[...]
- Download and execute ["Selenium Server"](http://selenium-release.storage.googleapis.com/2.44/selenium-server-standalone-2.44.0.jar)
- Configure project options
- Open "File > Project properties > Sources" and set "Test FTesting":
- Add folder
" to \[PROJECT ROOT\]/protected/tests
- Enable testing provider "PHPUnit"
- Open "File > Project properties >
PHPUnit" and sTesting > PHPUnit":
- Set "Use Bootstrap" to \[PROJECT ROOT\]/protected/tests/bootstrap.php
, and
- Set "Use XML Configuration" to \[PROJECT ROOT\]/protected/tests/phpunit.xml
#### Usage:
- Test whole project: Alt+F6
- Test single file: Shift-F6[...]