OSDN Git Service

add behat test for --skip-tests
authorscribu <mail@scribu.net>
Mon, 11 Nov 2013 22:25:57 +0000 (00:25 +0200)
committerscribu <mail@scribu.net>
Mon, 11 Nov 2013 22:25:57 +0000 (00:25 +0200)
features/plugin.feature

index b9ebc00..93c693a 100644 (file)
@@ -7,9 +7,15 @@ Feature: Manage WordPress plugins
     And I run `wp plugin path`
     And save STDOUT as {PLUGIN_DIR}
 
+    When I run `wp plugin scaffold --skip-tests plugin1`
+    Then STDOUT should not be empty
+    And the {PLUGIN_DIR}/plugin1/plugin1.php file should exist
+    And the {PLUGIN_DIR}/zombieland/phpunit.xml file should not exist
+
     When I run `wp plugin scaffold zombieland --plugin_name="Zombieland"`
     Then STDOUT should not be empty
     And the {PLUGIN_DIR}/zombieland/zombieland.php file should exist
+    And the {PLUGIN_DIR}/zombieland/phpunit.xml file should exist
 
     When I run `wp plugin status zombieland`
     Then STDOUT should contain: