Skip to content

Debug test configuration - #134

Merged
rubberduck-dev01 merged 3 commits into
rubberduck-vba:mainfrom
imojenisys:debug-build-configuration
Aug 19, 2026
Merged

Debug test configuration#134
rubberduck-dev01 merged 3 commits into
rubberduck-vba:mainfrom
imojenisys:debug-build-configuration

Conversation

@imojenisys

Copy link
Copy Markdown
Contributor

Closes #132

RDCore.slnx excluded RDCore.Tests from Debug|*, and Debug is the default configuration for dotnet. So the documented-by-habit invocation reported success having discovered nothing, and dotnet build RDCore.slnx couldn't catch a compile break in the test project either.

Before, on main:

> dotnet test RDCore.slnx
  Determining projects to restore...
  All projects are up-to-date for restore.
EXIT CODE: 0

After:

> dotnet test RDCore.slnx
  RDCore.Tests -> ...\RDCore.Tests\bin\Debug\net10.0\RDCore.Tests.dll
Passed!  - Failed: 0, Passed: 852, Skipped: 0, Total: 852

Release is unaffected: 852/852, verified separately.

Changes

  • RDCore.slnx — removed <Build Solution="Debug|*" Project="false" /> from the RDCore.Tests entry.
  • .github/workflows/build.yml — added Debug build and test steps ahead of the existing Release ones. I kept these as steps inside the single build-and-test job rather than converting to a matrix, so the check name doesn't change; happy to switch to a matrix if you'd rather.
  • CONTRIBUTING.md — a "Building and testing" / "Bâtir et tester" section in both halves, naming .NET 10 and the canonical commands, with a note that a run discovering no tests is not a passing run.

One thing worth knowing before you read the diff

CONTRIBUTING.md is the only one of the 696 tracked files stored with CRLF in the index (git ls-files --eol), so any edit to it renormalises the entire file under the existing text=auto attribute. I've isolated that into its own commit so the content change stays reviewable — the second commit is the one with the actual edit; the first is 89 lines of pure line-ending change and nothing else.

The solution excluded RDCore.Tests from Debug builds, so the default
'dotnet test RDCore.slnx' invocation reported success without discovering
any tests. Removes the exclusion, adds Debug legs to CI alongside the
existing Release legs, and documents the canonical build and test commands
in CONTRIBUTING.md (both languages).
@rubberduck-dev01

Copy link
Copy Markdown
Member

Mind resynchronizing? I missed the PR and pushed a small diff on CONTRIBUTING.md to relax the "no agents" bit... and that's the conflict, of course 😅

Signed-off-by: Rubberduck VBA Admin <admin@rubberduckvba.ca>
@rubberduck-dev01
rubberduck-dev01 merged commit 5f26ac1 into rubberduck-vba:main Aug 19, 2026
2 checks passed
@rubberduck-vba rubberduck-vba locked and limited conversation to collaborators Aug 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix debug build configuration to build test project

3 participants