Compiling a test with Unity tries to compile Unity's examples

When compiling some test code with Unity the Platformio attempts to compile the examples within that package. e.g.

Processing * in wemos_d1_mini32 environment
---------------------------------------------------------------------------------Building & Uploading…
.pio\libdeps\wemos_d1_mini32\Unity\examples\example_1\test\TestProductionCode2.c:2:29: fatal error: ProductionCode2.h: No such file or directory

As the include paths aren’t set up for this it fails.

What am I forgetting to do?

Have you read Project Structure — PlatformIO latest documentation ? Do you keep tests in test_*** folders?

They’re in the (default) test directory.

+In the end I just avoided using Unity