Unit Test for Revit Addin

Unit Test for Revit Addin

Anonymous
Not applicable
1,481 Views
4 Replies
Message 1 of 5

Unit Test for Revit Addin

Anonymous
Not applicable

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.

1,482 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable

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
Not applicable

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

 

 

0 Likes
Message 4 of 5

jeremytammik
Autodesk
Autodesk

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

0 Likes
Message 5 of 5

jeremytammik
Autodesk
Autodesk

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