Skip to content

Samples for the ricaun.RevitTest framework with Design Automation.

License

Notifications You must be signed in to change notification settings

ricaun-io/RevitTest.DA

Repository files navigation

RevitTest.DA.Samples

Revit 2024 Visual Studio 2022 Nuke License MIT Build

RevitTest.DA.Samples

ricaun.RevitTest is a multi-version NUnit testing framework for Revit API.

This project contain samples and the basic info about the ricaun.RevitTest Framework using Design Automation.

TestAdapter Configuration

To force the ricaun.RevitTest.TestAdapter to use the Design Automation for Revit to run test the environment variable RICAUN_REVITTEST_TESTADAPTER_NUNIT_APPLICATION could be used to set the path to the ricaun.RevitTest.DA.Console application.

RICAUN_REVITTEST_TESTADAPTER_NUNIT_APPLICATION=https://github.com/ricaun-io/ricaun.RevitTest.DA/releases/latest/download/ricaun.RevitTest.DA.Console.zip

There are other ways to change the NUnit.Application in the TestAdapter, check the Wiki for more information.

ricaun.RevitTest.DA

The ricaun.RevitTest.DA is a console application that can be used to run the tests in the Design Automation for Revit environment.

The environment variable APS_CLIENT_ID and APS_CLIENT_SECRET need to be set to run the tests in the Design Automation for Revit environment.

APS_CLIENT_ID=<your client id>
APS_CLIENT_SECRET=<your client secret>

To create a new application in the Autodesk Platform Service, check the Autodesk website. The application needs to have API Access to Design Automation API and Data Management API.

For more information about the ricaun.RevitTest.DA check the ricaun.RevitTest.DA.

dotnet test

The following command will run the tests and generate the results in the TestResults folder.

dotnet test .\RevitTest.DA\RevitTest.DA.csproj --configuration Release --logger trx --results-directory .\RevitTest.DA\bin\TestResults --verbosity Normal

License

This project is licensed under the MIT License.


Do you like this project? Please star this project on GitHub!

About

Samples for the ricaun.RevitTest framework with Design Automation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project