mirror of
https://github.com/10h30/wp-strava.git
synced 2026-06-05 15:10:01 +09:00
Added unit test README
This commit is contained in:
+1
-1
@@ -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"
|
||||
|
||||
@@ -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`
|
||||
@@ -8,4 +8,4 @@ class WPStrava_SOMEnglishTest extends TestCase {
|
||||
$som = new WPStrava_SOMEnglish();
|
||||
$this->assertInstanceOf( 'WPStrava_SOMEnglish', $som );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+2
-1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user