Skip to content

Update Nice3point.TUnit.Revit - #113

Merged
Nice3point merged 1 commit into
developfrom
renovate/nice3point.tunit.revit
Sep 28, 2026
Merged

Nice3point merged 1 commit into
developfrom
renovate/nice3point.tunit.revit

Conversation

@Nice3point

Copy link
Copy Markdown
Owner

This PR contains the following updates:

Package Type Update Change
Nice3point.TUnit.Revit nuget patch 2021.1.2 → 2021.1.4
Nice3point.TUnit.Revit nuget patch 2022.1.2 → 2022.1.4
Nice3point.TUnit.Revit nuget patch 2023.1.2 → 2023.1.4
Nice3point.TUnit.Revit nuget patch 2024.1.2 → 2024.1.4
Nice3point.TUnit.Revit nuget patch 2025.1.2 → 2025.1.4
Nice3point.TUnit.Revit nuget patch 2026.1.2 → 2026.1.4
Nice3point.TUnit.Revit nuget patch 2027.0.2 → 2027.0.4

Release Notes

Nice3point/RevitUnit (Nice3point.TUnit.Revit)

v2027.0.4

Compare Source

This release adds testing of the Revit user interface.

Revit UI testing

RevitApiUiTest runs tests inside a Revit process started with its user interface.
The UiApplication property exposes the UIApplication of that process, and every test body and hook runs on the Revit thread inside a Revit API context:

public sealed class SelectionTests : RevitApiUiTest
{
    [Test]
    public async Task SetElementIds_ActiveDocument_SelectsTheLevels()
    {
        // Arrange
        var uiDocument = UiApplication.OpenAndActivateDocument(modelPath);
        var levelIds = uiDocument.Document.CollectElements()
            .OfClass<Level>()
            .ToElementIds();

        // Act
        uiDocument.Selection.SetElementIds(levelIds);

        // Assert
        await Assert.That(uiDocument.Selection.GetElementIds()).IsEquivalentTo(levelIds);
    }
}

UI tests use the RevitAPIUI types, add the Nice3point.Revit.Api.RevitAPIUI package reference.

Enhancements

  • RevitApiTest applies RevitThreadExecutor to every test and hook of the class.
    The executor attributes are redundant now; remove [TestExecutor<RevitThreadExecutor>] and [HookExecutor<RevitThreadExecutor>] from test classes, methods, and hooks, and the assembly-level declaration, usually in TestsConfiguration.cs:

    // Remove
    [assembly: TestExecutor<RevitThreadExecutor>]

v2027.0.3

Compare Source


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

Copilot AI lite review requested due to automatic review settings September 28, 2026 04:09
@Nice3point Nice3point added the maintenance ⚙️ Renovate dependency updates and routine upkeep label Sep 28, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Nice3point
Nice3point merged commit 9e018a1 into develop Sep 28, 2026
1 check passed
@Nice3point
Nice3point deleted the renovate/nice3point.tunit.revit branch September 28, 2026 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance ⚙️ Renovate dependency updates and routine upkeep

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants