I have created a new Trait for testing my custom module and placed it in my_module/tests/src/Traits
with the namespace Drupal\Test\my_module\Traits
, the same as core modules do.
When I try to use this in my PHP Unit kernel test I just get the following error:
Fatal error: Trait 'Drupal\Test\my_module\Traits\CustomTrait' not found
Is there something special that needs to be included to allow custom traits in testing?