Skip to content

Add an optional parameter to XmlUtils.WriteNode to preserve specific namespaces #145

Add an optional parameter to XmlUtils.WriteNode to preserve specific namespaces

Add an optional parameter to XmlUtils.WriteNode to preserve specific namespaces #145

GitHub Actions / LibPalaso Tests failed Oct 31, 2024 in 0s

2 fail, 231 skipped, 4 596 pass in 12m 48s

    45 files  ±0      45 suites  ±0   12m 48s ⏱️ + 1m 12s
 4 829 tests ±0   4 596 ✅ +1  231 💤 ±0  2 ❌  - 1 
14 005 runs  ±0  13 376 ✅ +3  627 💤 ±0  2 ❌  - 3 

Results for commit 2c919a1. ± Comparison against earlier commit b5efcc9.

Annotations

Check warning on line 0 in SIL.WritingSystems.Tests.SldrTests

See this annotation in the file changed.

@github-actions github-actions / LibPalaso Tests

1 out of 3 runs failed: MoveTmpToCache_DraftApproved_RemovesUid (SIL.WritingSystems.Tests.SldrTests)

./test-results\results_net462_20241031214757.trx [took 0s]
Raw output
System.IO.DirectoryNotFoundException : Could not find a part of the path 'C:\Users\runneradmin\AppData\Local\Temp\SldrCacheTest\en-e2ccb575.ldml'.   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
   at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
   at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
   at SIL.WritingSystems.Tests.SldrTests.MoveTmpToCache_DraftApproved_RemovesUid() in D:\a\libpalaso\libpalaso\SIL.WritingSystems.Tests\SldrTests.cs:line 385

Check warning on line 0 in SIL.Tests.Xml.XmlUtilsTests

See this annotation in the file changed.

@github-actions github-actions / LibPalaso Tests

1 out of 3 runs failed: WriteNode_PreserveNamespacesArePreserved (SIL.Tests.Xml.XmlUtilsTests)

./test-results\results_net8.0_20241031215703.trx [took 0s]
Raw output
  Expected string length 185 but was 189. Strings differ at index 82.
  Expected: "...ext>\r\n\t\t<span\r\n\t\t\tclass="bold" xmlns:fw="https://fakefw.co..."
  But was:  "...ext>\r\n\t\t<span\r\n\t\t\tclass="bold"\r\n\t\t\txmlns:fw="https://fakef..."
  -----------------------------------------------------^
   at SIL.Tests.Xml.XmlUtilsTests.WriteNode_PreserveNamespacesArePreserved() in D:\a\libpalaso\libpalaso\SIL.Core.Tests\Xml\XmlUtilsTests.cs:line 207

1)    at SIL.Tests.Xml.XmlUtilsTests.WriteNode_PreserveNamespacesArePreserved() in D:\a\libpalaso\libpalaso\SIL.Core.Tests\Xml\XmlUtilsTests.cs:line 207