Skip to content

test: add public DWG fixtures for R2010, R2013 and R2018 - #67

Merged
mahach666 merged 7 commits into
IOExtend:mainfrom
gryaznulka:test/public-dwg-fixtures
Nov 22, 2026
Merged

mahach666 merged 7 commits into
IOExtend:mainfrom
gryaznulka:test/public-dwg-fixtures

Conversation

@gryaznulka

Copy link
Copy Markdown
Contributor

What changes and why

Refs #33. Adds three small, original, MIT-licensed drawings (AC1024, AC1027, AC1032) for CI without private files. The fixture guide records provenance, checksums, and a generator pinned to ACadSharp 3.8.35. Each file has one LINE, ARC, CIRCLE, and POINT; dedicated tests check the signature, checksum-enabled open, and authored coordinates. Private fixture discovery is unchanged.

AC1018 remains outstanding. The independently generated R2004 candidate opens in ACadSharp but DwgIO decodes 0 of 4 primitives and reports AppInfo and handle-map failures. This PR excludes that file rather than weakening the existing checks. No production code changed.

How it was checked

  • Linux Release tests on .NET 8 and .NET 10: 236 passed and 3 skipped per target (optional AppInfoHistory is absent and two file-lock checks are Windows-only).
  • Focused fixture tests: 11 passed and 1 optional skip per target.
  • The three DWG signatures and SHA-256 checksums were verified. The published branch tree matches the tested tree exactly.
  • Markdown/TOC built locally; full DocFX validation is left to CI because the local build host could not open its named pipe.

@mahach666 mahach666 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.

Please address the fixture lookup regression and align the documentation with the required public fixtures. The standard Windows build passed 238 tests on each target framework, and the generator reproduced all three drawings. The three new cases fail when the build output is outside the checkout.

Comment thread tests/DwgIO.Tests/TestFiles.cs Resolved
Comment thread docs/test-fixtures.md Resolved

@mahach666 mahach666 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.

Verified both fixes on .NET 8 and .NET 10. All three required fixture cases pass with an artifacts directory outside the checkout, and the updated docs describe the required copies and optional checks.

@mahach666
mahach666 marked this pull request as ready for review November 22, 2026 18:04
@mahach666
mahach666 merged commit 7d5c1bf into IOExtend:main Nov 22, 2026
6 checks passed
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