Skip to content

Use System.Text.Json instead of Newtonsoft.Json in Fake.Core.IntegrationTests#2844

Merged
xperiandri merged 1 commit into
fsprojects:masterfrom
Numpsy:stj_test
Jan 8, 2025
Merged

Use System.Text.Json instead of Newtonsoft.Json in Fake.Core.IntegrationTests#2844
xperiandri merged 1 commit into
fsprojects:masterfrom
Numpsy:stj_test

Conversation

@Numpsy
Copy link
Copy Markdown
Contributor

@Numpsy Numpsy commented Dec 19, 2024

Description

A small follow up to #2839 in case it's useful - only effects the tests, but drops a dependency on Newtonsoft.Json - the integration test project is built as .NET 6 so it always has System.Text.Json available in box

{ File = string (t.GetProperty("file"))
Line = t.GetProperty("line").GetInt32()
Column = t.GetProperty("column").GetInt32()
ErrorDetail = string (t.GetProperty("errorDetail")) }
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Note: uses string instead of .GetString() because GetString() can return null and the tests expect missing string properties to be an empty string rather than null

@github-actions
Copy link
Copy Markdown
Contributor

Test Results

    9 files  ±0      9 suites  ±0   51m 45s ⏱️ + 10m 43s
  439 tests ±0    439 ✅ ±0  0 💤 ±0  0 ❌ ±0 
1 251 runs  ±0  1 251 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit ce3af58. ± Comparison against base commit 048b97b.

@xperiandri xperiandri merged commit 1b1f18f into fsprojects:master Jan 8, 2025
@Numpsy Numpsy deleted the stj_test branch January 8, 2025 11:07
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.

2 participants