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

benennung von @beforeAll und @afterAll methoden #914

Open
vjohnslhm opened this issue Mar 7, 2025 · 0 comments
Open

benennung von @beforeAll und @afterAll methoden #914

vjohnslhm opened this issue Mar 7, 2025 · 0 comments
Labels
discussion we have to talk and decide

Comments

@vjohnslhm
Copy link
Contributor

In einer ArchUnit Regel haben wir diese Bezeichnungen bereits festgelegt:

  • Methoden die mit @BeforeEach annotiert sind, heißen setup
  • Methoden die mit @AfterEach annotiert sind, heißen teardown

Im Projekt nutzen wir auch die Annotationen @BeforeAll und @AfterAll, wo die Methoden teilweise die gleiche Bezeichnung haben. Es sollte sich für diese Annotationen ebenfalls auf eine einheitliche Benennung geeinigt werden. Hier ein paar Vorschläge:

  • @BeforeAll und init()/initialize() | @AfterAll und cleanup()/shutdown()
  • @BeforeAll und before() | @AfterAll und after()
  • @BeforeAll und prepareTestEnvironment() | @AfterAll und cleanupTestResources()

Anschließend sollen die ArchUnit Regeln erweitert werden.

@vjohnslhm vjohnslhm added the discussion we have to talk and decide label Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion we have to talk and decide
Projects
None yet
Development

No branches or pull requests

1 participant