Set up a Batch File to Launch the Test Runner
Add a file called test.bat to your project. This file will look something like so:
SET GALLIO_RUNTIME_PATH=C:\Gallio\bin
"C:\Gallio\bin\Gallio.Echo.exe" TestingExample1GallioTest.dll /r:AutoCAD
pause
Your file may look slightly different depending on where you installed Gallio, and the name of your test DLL. Be sure to set the properties of test.bat such that it gets copied to your output directory.
Run Your Tests
Finally, build your project, navigate to the project output folder, and launch test.bat. You should see a console window open, then AutoCAD will launch. Your tests will run, and then AutoCAD will close.
The output in the Console window should look something like this:
But I have some problems in this case:
1. I use remote debugging only (by MS Visual Studio): all AutoCAD's are located on the other machine, not the same as IDE's.
2. Remote machine has more than one AutoCAD installed: AutoCAD 2009-2015.
Questions:
1. How can I point the target AutoCAD version for the Gallio.Echo.exe?
2. I prefer to install all software for developing at the special developing machine (it contains the MS VS 2005-2013 and SDK's only, without the AutoCADs, BricsCADs, Revits, etc). So I prefer to install the Gallio on this machine, instead of Gallio installing to my test machines which are contain the CAD programs.
The compilation result are located in the shared folder of the remote machine. So this code loading to the AutoCAD without any problems. But now I want to fasten to it the using of Gallio... May be can I copy to output directory and some necessary Gallio's files (Gallio.Echo.exe for example) for the successful testing? Or, nevertheless, I must to install the Gallio on the remote machine?