PikTools.IntegrationTestsUtils 1.0.0

dotnet add package PikTools.IntegrationTestsUtils --version 1.0.0
NuGet\Install-Package PikTools.IntegrationTestsUtils -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="PikTools.IntegrationTestsUtils" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PikTools.IntegrationTestsUtils --version 1.0.0
#r "nuget: PikTools.IntegrationTestsUtils, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install PikTools.IntegrationTestsUtils as a Cake Addin
#addin nuget:?package=PikTools.IntegrationTestsUtils&version=1.0.0

// Install PikTools.IntegrationTestsUtils as a Cake Tool
#tool nuget:?package=PikTools.IntegrationTestsUtils&version=1.0.0

PikTools.IntegrationTestsUtils

Утилиты для тестирования.

RxBimCmdDiTestsBase<T>

Создан для тестирования конфигураций команд Rxbim. Выполняет настройку контейнера по файлу конфигурации и выполняет проверку на null параметров в методе ExecuteCommand в команде Rxbim.

Для использования необходимо:

  • Создать тестовый проект "CmdConfig.IntegrationTests" (для унификации)
  • Подключить nuget пакет PikTools.IntegrationTestsUtils.Revit или PikTools.IntegrationTestsUtils.Autocad
  • Создать класс наследник от RxBimCmdDiTestsBase<T> where T : RxBimCommand
  • Добавить атрибуты TestFixture с типами команд, конфигурацию которых необходимо проверить.
  • Запуск тестов:
    • nuke integrationtests --test-tool-name revit --OnlySelectedProjects
    • nuke integrationtests --OnlySelectedProjects

Пример команды для тестов:

[TestFixture(typeof(Modules.EngineeringSystems.Cmd), TestName = "Modules.EngineeringSystems.Cmd")]
[TestFixture(typeof(NonModelElements.Cmd), TestName = "NonModelElements.Cmd")]
[TestFixture(typeof(SumOfLengths.Cmd), TestName = "SumOfLengths.Cmd")]
public class RxBimCmdDiTests<T> : RxBimCmdDiTestsWithDefaultDocBase<T>
    where T : RxBimCommand
{
}

История разработки:

1.0.0

Добавлен RxBimCmdDiTestsBase.cs для тестирования конфигурации команд

Product Compatible and additional computed target framework versions.
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on PikTools.IntegrationTestsUtils:

Package Downloads
PikTools.IntegrationTestsUtils.Revit

PikTools integration tests utils library revit plugins.

PikTools.IntegrationTestsUtils.Autocad

PikTools integration tests utils library autocad plugins.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 101 5/27/2024