- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've developed Autodesk plugins and now I want to test the functionalities using automated tests. And I want to do it from Nunit/Console environment.
I understand that you do allow batch script automation. But this is a poor fit for my purpose because it's just a batch script and thus is impossible to direct manipulate .Net objects. It just makes my testing effort difficult if not impossible. So much so that I won't find the time well-spent.
To do unit testing under current AutoCAD constraints, I can wrap my tests in Commands, and the Netload my dll and call the Commands from the batch script. But the batch script can't handle dialog boxes that require user interaction like 'Yes' or 'No' reply. So how can I proceed then?
Secondly, I need to invent my own Assert statement and find a way to interpret it. I also can't make use of the test results aggregation and analytics tools such as NUnit Test Adapter to view my test results. I will have to write my own test adapters. These are a huge waste of development time because such a tool/convention already exists and is mature. Why reinvent the wheel?
If you allow me to write my test code in Nunit ( and run it successfully), then I can leverage all the standard code development best practices like mocking and MVVM so that I'll get the best automated testing experience. This is important if we want to develop a robust software.
Solution: I've written up a full solution here.
Ngu Soon Hui
##########
I'm the Benevolent Dictator for Life for MiTS Software. Read more here
I also setup Civil WHIZ in order to share what I learnt about Civil 3D
Solved! Go to Solution.