Skip to content

Adding unit tests for Versioning - #3660

Open
adecler wants to merge 5 commits into
developfrom
Versioning_Engine-#3659-VersioningUnitTests
Open

adecler wants to merge 5 commits into
developfrom
Versioning_Engine-#3659-VersioningUnitTests

Conversation

@adecler

@adecler adecler commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Issues addressed by this PR

Closes #3659

As per title, Creates a set of unit tests for the Versioning Engine.

  • This PR doesn't include regression tests on our tests datasets so it purely focuses on checking the versioning engine itself.
  • I am also planning on adding a generic regression runner that will use the versioning datasets in each repo once they exist. After discussion with @IsakNaslundBh, we agreed to keep that as a separate PR.
  • I also investigated the current issue with the unit tests not running on local desktop. I have fixed it for Versioning_Engine_Tests but didn't touch the other projects in the solution. I made sure this is also working correctly on the bot. Since it seems to be working, we should consider applying the same solution to the other projects.
  • The tests have highlighted a series of potential issues with the versioning engine. Those tests are tagged with the KnownIssue attribute. They are passing but will fail once we fix the underlying problem to confirm that the fix is working.
  • You can find more details about the tests and the identified issues here:
    05_VersioningSuspectedDefects.md
    06_VersioningTestSuite.md

Test files

Simply run the test from Visual studio. The tests created for versioning in this PR can be run on your machine by compiling them in Test config.

Changelog

Additional comments

Context on AI use: After an initial design phase, I had AI generate a first draft code for the tests. I then reviewed each test manually and had to edit about a third of them when the test was either incorrect, fragile, or inexact. This is a massive PR so we will have to discuss the best way for you to review this. The attached documents should help a little though.

@adecler
adecler requested a review from IsakNaslundBh December 1, 2026 10:36
@adecler adecler self-assigned this Dec 1, 2026
@adecler adecler added status:do-not-merge For instance, test PR, for discussion, or dependant PRs not ready for merge type:feature New capability or enhancement AI Assisted Code Co-authored with AI labels Dec 1, 2026
@adecler

adecler commented Dec 1, 2026

Copy link
Copy Markdown
Member Author

@BHoMBot check unit-tests

@bhombot-ci

bhombot-ci Bot commented Dec 1, 2026

Copy link
Copy Markdown

@adecler to confirm, the following actions are now queued:

  • check unit-tests

@adecler

adecler commented Dec 1, 2026

Copy link
Copy Markdown
Member Author

@BHoMBot check unit-tests

@bhombot-ci

bhombot-ci Bot commented Dec 1, 2026

Copy link
Copy Markdown

@adecler to confirm, the following actions are now queued:

  • check unit-tests

@adecler
adecler requested a review from sakanni December 1, 2026 15:01
@adecler

adecler commented Dec 1, 2026

Copy link
Copy Markdown
Member Author

@BHoMBot check unit-tests

@bhombot-ci

bhombot-ci Bot commented Dec 1, 2026

Copy link
Copy Markdown

@adecler to confirm, the following actions are now queued:

  • check unit-tests

@adecler adecler removed the status:do-not-merge For instance, test PR, for discussion, or dependant PRs not ready for merge label Dec 1, 2026
@adecler
adecler marked this pull request as ready for review December 1, 2026 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI Assisted Code Co-authored with AI type:feature New capability or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create unit tests for versioning

1 participant