Hi,is it possible to cover methods with unit tests that refer to Bentley classes?
If so, how could you do that?
Actually, MicroStation must be running to load self-written classes.
Best regards,Frank
Hi Frank Schneller,
Interesting timing of your question. In our latest MicroStation CONNECT SDK Update 15 release we now include information on how to Integrate a test framework like Google Test (GTest) and create your own (Native code) unit tests. There are two new examples added to the SDK: ..\GTestRunner and ..\Examples\AccudrawDemoTest (see: Readme.docx and/or this Blog just published).
Since this is our first step to publish test framework integration techniques and implementing native code unit testing processes, we need to queue up respective steps and examples for Managed code (likely GTest w/NUnit) and MicroStation VBA also.
Please keep an eye on our MicroStation SDK Blogs; since as priorities and time permit; we will likely publish for Managed and MVBA unit testing blogs prior to "next" product releases.
HTH,Bob
Hi,
this is great news, I really appreciate that. A few years back, I developed a test addin with nunit that uses the nunit lite test runner. (You need to edit Microstation.Tests.csproj.user with appropriate values and can than start with F5). It writes xml file with the test results - its far from the normal unit test expierence, but better than nothing...
Tests.zip
best regards, Harmen
Thanks for uploading this project.