Added unit test README

This commit is contained in:
Justin Foell
2018-11-09 13:45:37 -06:00
parent 438f849fad
commit 660308aa6b
4 changed files with 18 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/7.3/phpunit.xsd"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/6.5/phpunit.xsd"
bootstrap="./tests/bootstrap.php"
colors="true"
forceCoversAnnotation="true"
+14
View File
@@ -0,0 +1,14 @@
# Unit Tests
## Installation
In the main plugin directory run the following commands from the terminal:
`composer install`
## Running Tests
In the main plugin directory run the following commands from the terminal:
`vendor/bin/phpunit`
+1 -1
View File
@@ -8,4 +8,4 @@ class WPStrava_SOMEnglishTest extends TestCase {
$som = new WPStrava_SOMEnglish();
$this->assertInstanceOf( 'WPStrava_SOMEnglish', $som );
}
}
}
+2 -1
View File
@@ -2,5 +2,6 @@
if ( ! defined( 'WPSTRAVA_PLUGIN_DIR' ) ) define( 'WPSTRAVA_PLUGIN_DIR', dirname( __FILE__ ) . '/../' );
require_once dirname( __FILE__ ) . '/../lib/autoload.php';
require_once dirname( __FILE__ ) . '/../vendor/autoload.php';
WP_Mock::bootstrap();
WP_Mock::bootstrap();