Skip to content

Add doctest unit test suite and CI workflow - #65

Merged
ianalexis merged 1 commit into
mainfrom
Unit-test
Jul 29, 2026
Merged

Add doctest unit test suite and CI workflow#65
ianalexis merged 1 commit into
mainfrom
Unit-test

Conversation

@ianalexis

Copy link
Copy Markdown
Owner

Description

Introduces a complete unit test infrastructure using doctest v2.4.11:

  • tests/RealViewOn.Tests.vcxproj: standalone MSBuild project (ClangCL, x64) intentionally excluded from the main solution to avoid affecting release builds.
  • Test files covering SolidWorks, GPU, AdvanceMode, and Registro logic.
  • tests/test_access.h: friend-based access bridges to reach private pure functions without widening the public API.
  • .github/workflows/tests.yml: CI workflow that builds and runs tests on every push/PR to main touching source or test files, with JUnit report artifact and step summary.
  • Header guards added to Misc.h, Playmidi.h, Registro.h, SolidWorks.h, and Teclado.h to prevent multiple-inclusion errors when compiled together.
  • friend struct declarations added to AdvanceMode, GPU, and SolidWorks for test access.
  • test-results.xml added to .gitignore.
  • Build version bumped to 2.2.0.3.

Introduces a complete unit test infrastructure using doctest v2.4.11:

- `tests/RealViewOn.Tests.vcxproj`: standalone MSBuild project (ClangCL, x64) intentionally excluded from the main solution to avoid affecting release builds.
- Test files covering `SolidWorks`, `GPU`, `AdvanceMode`, and `Registro` logic.
- `tests/test_access.h`: friend-based access bridges to reach private pure functions without widening the public API.
- `.github/workflows/tests.yml`: CI workflow that builds and runs tests on every push/PR to `main` touching source or test files, with JUnit report artifact and step summary.
- Header guards added to `Misc.h`, `Playmidi.h`, `Registro.h`, `SolidWorks.h`, and `Teclado.h` to prevent multiple-inclusion errors when compiled together.
- `friend struct` declarations added to `AdvanceMode`, `GPU`, and `SolidWorks` for test access.
- `test-results.xml` added to `.gitignore`.
- Build version bumped to 2.2.0.3.
@ianalexis
ianalexis merged commit 4e7acab into main Jul 29, 2026
6 checks passed
@ianalexis
ianalexis deleted the Unit-test branch July 29, 2026 22:46
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.

1 participant