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

Add #[Story] and #[Factory] attributes #430

Open
nikophil opened this issue Mar 13, 2023 · 0 comments
Open

Add #[Story] and #[Factory] attributes #430

nikophil opened this issue Mar 13, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@nikophil
Copy link
Member

The main motivation behind this would be to be able to load factories and stories once in a class:

#[Story(MyStory::class)] // will be called for the test case
public function testSomething(): void

#[Story(MyStory::class)] // will be called once for the test class
class SomeTest extends TestCase {}

The main blocker here is to not reset database between tests: maybe we could do this for ResetDatabaseTrait but we'd certainly need to wait for phpunit 10 event's system to implement the feature with dmaicher/doctrine test-bundle

@nikophil nikophil added the enhancement New feature or request label Mar 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant