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

[TEST] Improve SqlDataRecord DateOnly and TimeOnly coverage #3128

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

ErikEJ
Copy link
Contributor

@ErikEJ ErikEJ commented Jan 22, 2025

Make SqlDecimalConvertToDecimal_TestInRange run on non-US systems

fixes #3125
related to #2258

Make SqlDecimalConvertToDecimal_TestInRange run on non-US systems

fixes dotnet#3125
related to dotnet#2258
@benrr101
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@benrr101
Copy link
Contributor

benrr101 commented Feb 3, 2025

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@benrr101
Copy link
Contributor

@ErikEJ looking into the test failures more, it looks like they're genuine failures of the test related to the changes you made. The value itself looks to be correct but the formatting is wrong. Looks like it's possible the assert isn't doing the right comparison?

Copy link
Contributor

@benrr101 benrr101 left a comment

Choose a reason for hiding this comment

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

Holding until the unit tests are fixed

@ErikEJ
Copy link
Contributor Author

ErikEJ commented Feb 12, 2025

@benrr101 Thanks - it is SO hard to locate the actual errors

@ErikEJ
Copy link
Contributor Author

ErikEJ commented Feb 12, 2025

@benrr101 I had made the .NET Framework test pass locally 😆

@ErikEJ
Copy link
Contributor Author

ErikEJ commented Feb 19, 2025

@benrr101 Tests are passing now!

@benrr101
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@benrr101
Copy link
Contributor

benrr101 commented Feb 19, 2025

@ErikEJ
Copy link
Contributor Author

ErikEJ commented Feb 20, 2025

@benrr101 OMG - the pipeline never ran - I will investigate, thanks

@ErikEJ
Copy link
Contributor Author

ErikEJ commented Feb 20, 2025

@dotnet/sqlclientdevteam Pls kick the CI 🙏

@apoorvdeshmukh
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ErikEJ
Copy link
Contributor Author

ErikEJ commented Feb 21, 2025

@benrr101 Failing test seems unrelated ??

@benrr101
Copy link
Contributor

@benrr101 Failing test seems unrelated ??

Agreed, it seems to be so. I'll proceed to kick it until its behavior improves.

Copy link

codecov bot commented Feb 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 66.14%. Comparing base (081fc51) to head (595c898).
Report is 7 commits behind head on main.

❗ There is a different number of reports uploaded between BASE (081fc51) and HEAD (595c898). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (081fc51) HEAD (595c898)
addons 1 0
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3128      +/-   ##
==========================================
- Coverage   72.73%   66.14%   -6.59%     
==========================================
  Files         283      279       -4     
  Lines       58997    58945      -52     
==========================================
- Hits        42910    38989    -3921     
- Misses      16087    19956    +3869     
Flag Coverage Δ
addons ?
netcore 69.22% <ø> (-6.32%) ⬇️
netfx 64.83% <ø> (-6.37%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Support for DateOnly & TimeOnly types on SqlDataRecord
4 participants