Skip to content

Request meta tests boilerplate#1746

Merged
bkoelman merged 62 commits intojson-api-dotnet:masterfrom
mrmarcosmagalhaes:request-meta-tests-boilerplate
Jan 31, 2026
Merged

Request meta tests boilerplate#1746
bkoelman merged 62 commits intojson-api-dotnet:masterfrom
mrmarcosmagalhaes:request-meta-tests-boilerplate

Conversation

@mrmarcosmagalhaes
Copy link
Copy Markdown
Contributor

@mrmarcosmagalhaes mrmarcosmagalhaes commented Jul 16, 2025

Closes #1500

QUALITY CHECKLIST

@bkoelman bkoelman changed the base branch from request-meta-tests-boilerplate to master July 19, 2025 09:08
@bkoelman
Copy link
Copy Markdown
Member

Thanks, this looks great!

I've changed the base of this PR, so that status checks run.

@codecov
Copy link
Copy Markdown

codecov Bot commented Jul 19, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.25%. Comparing base (b7a7307) to head (72ef335).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1746   +/-   ##
=======================================
  Coverage   92.24%   92.25%           
=======================================
  Files         437      437           
  Lines       14860    14860           
  Branches     2451     2451           
=======================================
+ Hits        13708    13709    +1     
+ Misses        709      708    -1     
  Partials      443      443           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bkoelman
Copy link
Copy Markdown
Member

bkoelman commented Dec 3, 2025

@mrmarcosmagalhaes, do you still want to complete the work on this PR? If not, please let me know, so I can pick up from here.

@mrmarcosmagalhaes
Copy link
Copy Markdown
Contributor Author

mrmarcosmagalhaes commented Dec 8, 2025 via email

@bkoelman
Copy link
Copy Markdown
Member

bkoelman commented Dec 9, 2025

Congratulations! Looking forward to your contribution.

@mrmarcosmagalhaes
Copy link
Copy Markdown
Contributor Author

@bkoelman Completed and consolidated RequestMetaTests.
All resource, relationship, and atomic operations now have a single integration test per endpoint, covering all valid meta locations.
Added full coverage for atomic relationship operations (to-one and to-many), fully aligned with the JSON:API spec.
Sorry for the late push but my life right now is not easy.

Copy link
Copy Markdown
Member

@bkoelman bkoelman left a comment

Choose a reason for hiding this comment

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

Thanks for addressing all the feedback. Minus the comments posted here, I think RequestMetaTests is good to go. I've added a comment requesting to sync up the operations tests, which I'll take a closer look at next time.

Comment thread test/JsonApiDotNetCoreTests/IntegrationTests/Meta/RequestMetaTests.cs Outdated
Comment thread test/JsonApiDotNetCoreTests/IntegrationTests/Meta/OperationsRequestMetaTests.cs Outdated
Comment thread test/JsonApiDotNetCoreTests/IntegrationTests/Meta/MetaFakers.cs Outdated
Comment thread test/JsonApiDotNetCoreTests/IntegrationTests/Meta/RequestMetaTests.cs Outdated
Comment thread test/JsonApiDotNetCoreTests/IntegrationTests/Meta/RequestMetaTests.cs Outdated
Comment thread test/JsonApiDotNetCoreTests/IntegrationTests/Meta/RequestMetaTests.cs Outdated
Comment thread test/JsonApiDotNetCoreTests/IntegrationTests/Meta/RequestMetaTests.cs Outdated
Comment thread test/JsonApiDotNetCoreTests/IntegrationTests/Meta/OperationsRequestMetaTests.cs Outdated
Comment thread test/JsonApiDotNetCoreTests/IntegrationTests/Meta/OperationsRequestMetaTests.cs Outdated
Comment thread test/JsonApiDotNetCoreTests/IntegrationTests/Meta/OperationsRequestMetaTests.cs Outdated
Copy link
Copy Markdown
Member

@bkoelman bkoelman left a comment

Choose a reason for hiding this comment

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

I've left some more feedback. The tests for operations are not quite in sync yet.

Comment thread test/JsonApiDotNetCoreTests/IntegrationTests/Meta/RequestMetaTests.cs Outdated
Comment thread test/JsonApiDotNetCoreTests/IntegrationTests/Meta/RequestMetaTests.cs Outdated
Comment thread test/JsonApiDotNetCoreTests/IntegrationTests/Meta/RequestMetaTests.cs Outdated
Comment thread test/JsonApiDotNetCoreTests/IntegrationTests/Meta/RequestMetaTests.cs Outdated
Comment thread test/JsonApiDotNetCoreTests/IntegrationTests/Meta/RequestMetaTests.cs Outdated
Comment thread test/JsonApiDotNetCoreTests/IntegrationTests/Meta/RequestMetaTests.cs Outdated
Comment thread test/JsonApiDotNetCoreTests/IntegrationTests/Meta/OperationsRequestMetaTests.cs Outdated
Comment thread test/JsonApiDotNetCoreTests/IntegrationTests/Meta/RequestMetaTests.cs Outdated
Comment thread test/JsonApiDotNetCoreTests/IntegrationTests/Meta/OperationsRequestMetaTests.cs Outdated
Comment thread test/JsonApiDotNetCoreTests/IntegrationTests/Meta/OperationsRequestMetaTests.cs Outdated
Copy link
Copy Markdown
Member

@bkoelman bkoelman left a comment

Choose a reason for hiding this comment

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

I've completed another review pass. I've started with RequestMetaTests, then diffed it against OperationsRequestMetaTests. This means that new feedback on the first file should be applied to the second file too, where applicable, to keep them in sync.

Comment thread test/JsonApiDotNetCoreTests/IntegrationTests/Meta/RequestMetaTests.cs Outdated
Comment thread test/JsonApiDotNetCoreTests/IntegrationTests/Meta/RequestMetaTests.cs Outdated
Comment thread test/JsonApiDotNetCoreTests/IntegrationTests/Meta/RequestMetaTests.cs Outdated
Comment thread test/JsonApiDotNetCoreTests/IntegrationTests/Meta/RequestMetaTests.cs Outdated
Comment thread test/JsonApiDotNetCoreTests/IntegrationTests/Meta/OperationsRequestMetaTests.cs Outdated
Comment thread test/JsonApiDotNetCoreTests/IntegrationTests/Meta/OperationsRequestMetaTests.cs Outdated
Comment thread test/JsonApiDotNetCoreTests/IntegrationTests/Meta/OperationsRequestMetaTests.cs Outdated
Comment thread test/JsonApiDotNetCoreTests/IntegrationTests/Meta/OperationsRequestMetaTests.cs Outdated
Comment thread test/JsonApiDotNetCoreTests/IntegrationTests/Meta/OperationsRequestMetaTests.cs Outdated
Comment thread test/JsonApiDotNetCoreTests/IntegrationTests/Meta/OperationsRequestMetaTests.cs Outdated
Copy link
Copy Markdown
Member

@bkoelman bkoelman left a comment

Choose a reason for hiding this comment

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

Not all feedback from the previous round has been addressed yet.

Comment thread test/JsonApiDotNetCoreTests/IntegrationTests/Meta/OperationsRequestMetaTests.cs Outdated
Comment thread test/JsonApiDotNetCoreTests/IntegrationTests/Meta/OperationsRequestMetaTests.cs Outdated
@mrmarcosmagalhaes
Copy link
Copy Markdown
Contributor Author

mrmarcosmagalhaes commented Jan 28, 2026 via email

@bkoelman
Copy link
Copy Markdown
Member

Done. Can you review Bart? Thanks.

The same still applies: not all feedback has been addressed yet. Click "Load more" in the GitHub Web UI (Conversation tab) to view them.

Copy link
Copy Markdown
Member

@bkoelman bkoelman left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution!

@bkoelman bkoelman merged commit 63897db into json-api-dotnet:master Jan 31, 2026
15 checks passed
@mrmarcosmagalhaes
Copy link
Copy Markdown
Contributor Author

mrmarcosmagalhaes commented Jan 31, 2026 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Add tests for submitting meta

2 participants