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

Development: Reduce redundant autowires in server tests #8996

Merged
merged 11 commits into from
Jul 11, 2024

Conversation

MaximilianAnzinger
Copy link
Contributor

@MaximilianAnzinger MaximilianAnzinger commented Jul 8, 2024

Checklist

General

Motivation and Context

For testing we already use base classes that autowire some commonly used services. However, we often autowire the required service again in the integration test.

Description

This PR removes a lot of duplicated / unnecessary autowires.

Review Progress

Code Review

  • Code Review 1
  • Code Review 2

@MaximilianAnzinger MaximilianAnzinger marked this pull request as ready for review July 9, 2024 09:14
@MaximilianAnzinger MaximilianAnzinger requested a review from a team as a code owner July 9, 2024 09:14
@MaximilianAnzinger MaximilianAnzinger added this to the 7.4.2 milestone Jul 9, 2024
@MaximilianAnzinger MaximilianAnzinger changed the title Development: Improve test code quality Development: Reduce redundant autowires in server tests Jul 9, 2024
Copy link
Contributor

@JohannesStoehr JohannesStoehr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Servertests are still successful. Looks good to me

Copy link
Contributor

@egekurt123 egekurt123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests run successfully both locally and on github. Code LGTM

Copy link
Contributor

@Strohgelaender Strohgelaender left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! The inconsistent names (repository vs repo) were always a problem when extending test classes, this got at least a bit easier now.

@krusche krusche merged commit b58e297 into develop Jul 11, 2024
39 of 41 checks passed
@krusche krusche deleted the chore/development/improve-test-code-quality branch July 11, 2024 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Merged
Development

Successfully merging this pull request may close these issues.

None yet

5 participants