You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have several types of tests that have their own parent Test Case (e.g., like Validator classes). However, we follow a DDD layout and don't want to place all of the validators in a single directory.
Ideally, I'd like to be able to specify a parent test case for a group of tests like so:
// Pest.phpuses(ValidatorTestCase::class)->group('validators');
uses(TestCase::class)->in('Feature');
// test file in `Feature/some/path/to/Validators/`uses()->group('validators')
Another solution would be to just override the test case used in that particular file:
// test file in `Feature/some/path/to/Validators/`uses(ValidatorTestCase::class)->group('validators');
however, this yields a folder already uses the test case 'Tests\TestCase' exception.
The first solution would be the best and most robust as there wouldn't be a ton of duplicate calls throughout the tests.
Thanks!
The text was updated successfully, but these errors were encountered:
Hello,
I have several types of tests that have their own parent Test Case (e.g., like Validator classes). However, we follow a DDD layout and don't want to place all of the validators in a single directory.
Ideally, I'd like to be able to specify a parent test case for a group of tests like so:
Another solution would be to just override the test case used in that particular file:
however, this yields a
folder already uses the test case 'Tests\TestCase'
exception.The first solution would be the best and most robust as there wouldn't be a ton of duplicate calls throughout the tests.
Thanks!
The text was updated successfully, but these errors were encountered: