mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 17:03:21 +01:00
Updated Code testing (markdown)
parent
896357578b
commit
ccfcacee6b
@ -33,14 +33,18 @@ PHPUnit in Netbeans needs another module called Skeleton Generator Script which
|
||||
|
||||
|
||||
* **Step 1:**
|
||||
![alt text]("Netbeans options")
|
||||
|
||||
Go to **Tools -> Options -> PHP -> Frameworks & Tools** and configure PHPUnit Script and Skeleton Generator Script.<br/><br/><br/>
|
||||
![Netbeans options](https://raw.githubusercontent.com/wiki/EGroupware/egroupware/pics/code_testing_nb_options.png)
|
||||
<br/><br/><br/>
|
||||
* **Step 2:**
|
||||
Go to project **properties -> Testing**. There you can add all test folders into "Test Directories", then check mark the PHPUnit as Testing Provider, and click OK.<br/>
|
||||
Go to project **properties -> Testing**. There you can add all test folders into "Test Directories", then check mark the PHPUnit as Testing Provider, and click OK.<br/><br/><br/>
|
||||
![Netbeans properties](https://raw.githubusercontent.com/wiki/EGroupware/egroupware/pics/code_testing_nb_properties.png)
|
||||
|
||||
![alt text]("Project properties")
|
||||
|
||||
>**Note:** In case you're wondering where did your test folders just vanish!? **Do Not Panic!** Netbeans removes them just from Source Files in Projects tree and will add them as Test Files Sections under the project root, and the original test folders are untouched.<br/>
|
||||
>**Note:** In case you're wondering where did your test folders just vanish!? **Do Not Panic!** Netbeans removes them just from Source Files in Projects tree and will add them as Test Files Sections under the project root, and the original test folders are untouched.
|
||||
|
||||
* **Step3:**
|
||||
Now we have everything ready to run the tests. We just need to press "Alt + F6" or right click on project and run Test. For running individual test we can go to each particular test file and run that test.
|
||||
Now we have everything ready to run the tests. We just need to press "Alt + F6" or right click on project and run Test.<br/><br/><br/>
|
||||
![Running tests](https://raw.githubusercontent.com/wiki/EGroupware/egroupware/pics/code_testing_running_tests.png)
|
||||
|
||||
|
||||
>For running individual test we can go to each particular test file and run that test.
|
Loading…
Reference in New Issue
Block a user