diff --git a/Code-testing.md b/Code-testing.md index a5af352..0f5a71a 100644 --- a/Code-testing.md +++ b/Code-testing.md @@ -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.


+![Netbeans options](https://raw.githubusercontent.com/wiki/EGroupware/egroupware/pics/code_testing_nb_options.png) +


* **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.
+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.


+![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.
+ >**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. \ No newline at end of file +Now we have everything ready to run the tests. We just need to press "Alt + F6" or right click on project and run Test.


+![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. \ No newline at end of file