# Wordpress Unit Testcases

This directory serves as a place to store test cases which are written for functions created inside functions.php file of current theme and custom plugins created inside plugins folder.

## Running the Test Suite:
<u><i>For MacOs</i></u><br/>
```brew install ant```<br/><br/>

<u><i>For Windows</i></u><br/>
http://www-eu.apache.org/dist//ant/source/apache-ant-1.9.11-src.zip<br/>
```Visit Apache Ant official website, download the Ant binary zip file, for example : apache-ant-1.9.11-bin.zip, unzip it to the folder you want to store Apache Ant.```<br/><br/>

To run complete test suite, go to build directory from root directory and run following command which will execute build.xml file.<br/>
```bash
   build ant
```

## Running Specific Tests:
To run an individual file, you have to run ```build ant``` command from build directory for one time.<br/>
Then after go to vendor/wordpress-develop directory from root directory and run following command.<br/>
```bash
   ../bin/phpunit tests/phpunit/tests/helpcenter/filename.php
```
