Basic
Below we cover the basic configuration to get you started with WPSelenium
<wpselenium>
<siteUrl>http://localhost:3000</siteUrl>
</wpselenium>
siteUrl
This is the url for the site you want to run the selenium tests against.
phpunit
This is a wrapper for the phpunit.xml config file. Any config you would put there, you could put it here. For instance your testsuites. Below is an example for when your tests are in the test directory relative to the wpselenium.xml file.
<wpselenium>
<siteUrl>http://localhost:3000</siteUrl>
<phpunit bootstrap="vendor/autoload.php">
<testsuites>
<testsuite name="WPSelenium Demo Tests">
<directory>tests</directory>
</testsuite>
</testsuites>
</phpunit>
</wpselenium>
Note:- You can also create a
phpunit.xml
file in the root of your project directly and ommit this configuration point here. WPSelenium will use whichever phpunit.xml file it finds in the root of your project to run phpunit with.If you dont specify the phpunit configuration in the wpselenium.xml config and havent created a phpunit configuration file in the root of your project, wpselenium will create a starter one for you, pointing to the Sample Test that comes with WPSelenium.