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.
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.
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.
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
This project is licensed under the MIT License.
Do you like this project? Please star this project on GitHub!