Title: phpunit no tests executed
Last modified: February 18, 2019

---

# phpunit no tests executed

 *  Resolved [shanebp](https://wordpress.org/support/users/shanebp/)
 * (@shanebp)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/phpunit-no-tests-executed/)
 * On Windows 10, running the latest VVV, trying to get unit tests working.
 * Following the directions on [https://make.wordpress.org/cli/handbook/plugin-unit-tests/](https://make.wordpress.org/cli/handbook/plugin-unit-tests/)
 * Everything seems ok, the `bin` and `tests` dirs are created in the targeted plugin.
   
   As are the yml and dist files.
 * But when I run phpunit, the result is always `No tests executed!`
 * I’m new to phpunit, so I’m hoping it is something simple.
 * Here is the log for an attempt: [https://pastebin.com/9Tc1JhZr](https://pastebin.com/9Tc1JhZr)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [shanebp](https://wordpress.org/support/users/shanebp/)
 * (@shanebp)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/phpunit-no-tests-executed/#post-11219904)
 * Correction; here is the log for an attempt: [https://gist.github.com/shanebp/bd11a2c9612ef92dea19071d4acd5ab3](https://gist.github.com/shanebp/bd11a2c9612ef92dea19071d4acd5ab3)
 *  Thread Starter [shanebp](https://wordpress.org/support/users/shanebp/)
 * (@shanebp)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/phpunit-no-tests-executed/#post-11223496)
 * From slack cli:
 * > By default, the code includes one sample test, but that test is excluded through
   > the PHPUnit config file to not actually run. So if you didn’t add any tests,“
   > No tests executed!” is the correct output to expect.
 * I was expecting a single assertion to indicate everything was working properly
   before writing my tests.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘phpunit no tests executed’ is closed to new replies.

## Tags

 * [cli](https://wordpress.org/support/topic-tag/cli/)
 * [phpunit](https://wordpress.org/support/topic-tag/phpunit/)
 * [vvv](https://wordpress.org/support/topic-tag/vvv/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 2 replies
 * 1 participant
 * Last reply from: [shanebp](https://wordpress.org/support/users/shanebp/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/phpunit-no-tests-executed/#post-11223496)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
