Skip to content

Enhance Test Coverage for JSON datatype support#3062

Merged
apoorvdeshmukh merged 6 commits intodotnet:mainfrom
apoorvdeshmukh:dev/jsonTestEnhancements
Dec 11, 2024
Merged

Enhance Test Coverage for JSON datatype support#3062
apoorvdeshmukh merged 6 commits intodotnet:mainfrom
apoorvdeshmukh:dev/jsonTestEnhancements

Conversation

@apoorvdeshmukh
Copy link
Copy Markdown
Contributor

@apoorvdeshmukh apoorvdeshmukh commented Dec 5, 2024

Enhanced BCP testcase to transfer multiple rows of JSON file.
Added missing SqlDataReader tests.

Comment thread src/Microsoft.Data.SqlClient/netfx/src/Microsoft.Data.SqlClient.csproj Outdated
Comment thread src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/JsonTest/JsonTest.cs Outdated
Comment thread src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/JsonTest/JsonTest.cs Outdated
Comment thread src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/JsonTest/JsonTest.cs Outdated
Comment thread src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/JsonTest/JsonTest.cs Outdated
Comment thread src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/JsonTest/JsonBulkCopyTest.cs Outdated
Comment thread src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/JsonTest/JsonBulkCopyTest.cs Outdated
Comment thread src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/JsonTest/JsonBulkCopyTest.cs Outdated
Comment thread src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/JsonTest/JsonTest.cs Outdated
Comment thread src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/JsonTest/JsonBulkCopyTest.cs Outdated
@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.66%. Comparing base (b8e0c9f) to head (510881b).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3062      +/-   ##
==========================================
- Coverage   72.70%   72.66%   -0.04%     
==========================================
  Files         283      283              
  Lines       58975    58975              
==========================================
- Hits        42875    42856      -19     
- Misses      16100    16119      +19     
Flag Coverage Δ
addons 92.58% <ø> (ø)
netcore 75.46% <ø> (-0.05%) ⬇️
netfx 71.13% <ø> (-0.01%) ⬇️

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.

Comment thread src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/JsonTest/JsonBulkCopyTest.cs Outdated
@cheenamalhotra
Copy link
Copy Markdown
Member

cheenamalhotra commented Dec 10, 2024

Once approved and merged, please backport this PR to release/6.0 branch too.

@cheenamalhotra cheenamalhotra added this to the 6.0.0 milestone Dec 10, 2024
@apoorvdeshmukh apoorvdeshmukh merged commit 44cfedd into dotnet:main Dec 11, 2024
apoorvdeshmukh added a commit to apoorvdeshmukh/SqlClient that referenced this pull request Dec 11, 2024
Enhanced BCP tests to transfer multiple rows
Added SqlDataReader specific API tests
Added scenario of read MARS involving json datatype
Parameterized jsonArrayElements and rows for JsonBulkCopyTests
@apoorvdeshmukh apoorvdeshmukh deleted the dev/jsonTestEnhancements branch February 19, 2026 10:56
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.

4 participants