Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use parent class Layer attribute #61

Open
antonkomarev opened this issue Dec 11, 2024 · 0 comments
Open

Use parent class Layer attribute #61

antonkomarev opened this issue Dec 11, 2024 · 0 comments

Comments

@antonkomarev
Copy link

antonkomarev commented Dec 11, 2024

Right now we can define the Layer attribute in the method or in the class which has this method.

It's not great to enforce developers to add this attribute to all classes, because most of the time it's the same for all test classes inside of the layer directory and each test class in the layer may have an abstract class.

For example:

#[Layer('unit')]
abstract class UnitTestCase {}

#[Layer('integration')]
abstract class IntegrationTestCase {}

final class SomePureTests extends UnitTestCase {}

final class SomeDbTests extends IntegrationTestCase {}

1 level deep search for the attribute is enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant