Skip to content

[TEST] Improve SqlDataRecord DateOnly and TimeOnly coverage - #3128

Merged
benrr101 merged 4 commits into
dotnet:mainfrom
ErikEJ:issue-3125
Feb 25, 2025
Merged

[TEST] Improve SqlDataRecord DateOnly and TimeOnly coverage#3128
benrr101 merged 4 commits into
dotnet:mainfrom
ErikEJ:issue-3125

Conversation

@ErikEJ

Copy link
Copy Markdown
Contributor

Make SqlDecimalConvertToDecimal_TestInRange run on non-US systems

fixes#3125
related to #2258

Make SqlDecimalConvertToDecimal_TestInRange run on non-US systems
fixesdotnet#3125
related to dotnet#2258
@benrr101

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@benrr101

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@benrr101

Copy link
Copy Markdown
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?

@benrr101benrr101 left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
ContributorAuthor

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

@ErikEJ

Copy link
Copy Markdown
ContributorAuthor

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

@ErikEJ

Copy link
Copy Markdown
ContributorAuthor

@benrr101 Tests are passing now!

@benrr101

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@benrr101

benrr101 commented Feb 19, 2025

Copy link
Copy Markdown
Contributor

@ErikEJ

Copy link
Copy Markdown
ContributorAuthor

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

@ErikEJ

ErikEJ commented Feb 20, 2025

Copy link
Copy Markdown
ContributorAuthor

@dotnet/sqlclientdevteam Pls kick the CI 🙏

@apoorvdeshmukh

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@ErikEJ

Copy link
Copy Markdown
ContributorAuthor

@benrr101 Failing test seems unrelated ??

@benrr101

Copy link
Copy Markdown
Contributor

@benrr101 Failing test seems unrelated ??

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

@codecov

codecovBot commented Feb 21, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 66.14%. Comparing base (081fc51) to head (595c898).
Report is 9 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
FlagBASE (081fc51)HEAD (595c898)
addons10
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 
FlagCoverage Δ
addons?
netcore69.22% <ø> (-6.32%)⬇️
netfx64.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.

@benrr101benrr101 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Test passing, LFG 🚢 🚢 🚢

Sign up for freeto 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

5 participants

@ErikEJ@benrr101@apoorvdeshmukh@paulmedynski@mdaigle