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

BREAKING | Simplify classes #295

Merged
merged 105 commits into from
Apr 23, 2024
Merged

BREAKING | Simplify classes #295

merged 105 commits into from
Apr 23, 2024

Conversation

alejandrohdezma
Copy link
Owner

@alejandrohdezma alejandrohdezma commented Apr 25, 2023

💻 How to review this PR?

This PR was created with the idea of being reviewed commit by commit. Each commit contains an incremental change that makes it easier to review. Also some of the commits contain additional information in their description to help understand why the change was made.

I also recommend checking "Hide whitespace" when reviewing this PR!

🚀 What's included in this PR?

📦 Use attributes for storing auth context on AuthedRoutesSuite

Instead of having to parametrize everything with ContextRequest. Although this change is in fact a breaking change, it shouldn't have much effect on most codebases, since adding the context has been implemented into the Request#context extend method.

🔥 Simplify hierarchy

The type parameter in Http4sSuite has been removed, since we can just use Request everywhere. This also allows to directly implement http4sMUnitNameCreator, test and http4sMUnitFunFixture at the top level.

New methods have been created for providing the fixture running the tests, as well as a new class representing test-names creator.

The Http4sMUnitTestCreator has been extracted to its own class.

@alejandrohdezma alejandrohdezma requested a review from gutiory April 25, 2023 07:58
@github-actions github-actions bot added 🚀 feature New feature or improvement ⚖️ M Size of PR between 100 and 500 lines labels Apr 25, 2023
@github-actions github-actions bot added ⚖️ XL Size of PR between 1000 and 2000 lines and removed ⚖️ M Size of PR between 100 and 500 lines labels May 4, 2023
@alejandrohdezma alejandrohdezma force-pushed the feature/fixtures branch 5 times, most recently from f312c80 to 981527f Compare May 4, 2023 19:14
@alejandrohdezma alejandrohdezma changed the base branch from main to munit1.0 August 31, 2023 05:09
alejandrohdezma-steward bot and others added 28 commits January 15, 2024 05:14
Signed-off-by: Alejandro Hernández <info@alejandrohdezma.com>
@alejandrohdezma alejandrohdezma merged commit 0bcad2f into munit1.0 Apr 23, 2024
4 checks passed
@alejandrohdezma alejandrohdezma deleted the feature/fixtures branch April 23, 2024 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚖️ XL Size of PR between 1000 and 2000 lines 🚀 feature New feature or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant