Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unit Test for Revit Addin

4 REPLIES 4
Reply
Message 1 of 5
Anonymous
1138 Views, 4 Replies

Unit Test for Revit Addin

I want to write unit tests for the Revit addin I created using Revit 2020.
I used xUnit and implemented test cases but it is failing as it needs Revit application to run.
I've checked the Revit.TestRunner, RevitTestFramework projects for unit test they don't work for Revit 2020, and I want to implement test in my project.
Is there a way to implement unit tests for Revit addin.

4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: Anonymous

Patrick Fernback and Corey Smith did a presentation on this topic and testing methodologies in general at AU Las Vegas last month. Perhaps some of their material will be valuable to you.
Link to Content

Message 3 of 5
Anonymous
in reply to: Anonymous

Have you found anything? I am still straggling with tests, I am not able to find some information.

 

 

Message 4 of 5
jeremytammik
in reply to: Anonymous

Have you read the answer above?

 

It basically says it all.

 

Furthermore:

 

https://thebuildingcoder.typepad.com/blog/about-the-author.html#5.16

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 5 of 5
jeremytammik
in reply to: Anonymous

Thank you very much for the pointer to the AU class! I added it to the blog to enhance visibility:

 

https://thebuildingcoder.typepad.com/blog/2020/01/unit-testing-and-the-usesinstancegeometry-method.h...

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report