TheSwamp

Code Red => .NET => Topic started by: Andrey Bushman on April 04, 2014, 05:03:08 AM

Title: Gallio & AutoCAD's version
Post by: Andrey Bushman on April 04, 2014, 05:03:08 AM
Gallio has not the Gallio.AutoCAD.Plugin200.dll still (for the AutoCAD 2015).
Title: Re: Gallio & AutoCAD's version
Post by: Andrey Bushman on April 11, 2014, 02:33:56 AM
I compiled the Gallio.AutoCAD.Plugin200.dll file myself: now it works fine for AutoCAD 2015 too. The Gallio has not a documentation. It is very bad. The tests can't be launched with using of accoreconsole.exe. I think the reason is accoreconsole has not COM API. So this absence is very bad too.

Now I run my tests through the BAT file:
Code: [Select]
SET GALLIO_RUNTIME_PATH=C:\Program Files\Gallio\bin
"C:\Program Files\Gallio\bin\Gallio.Echo.exe" mytests.dll /r:AutoCAD
pause

The short report I see in the console output:
Quote
1 run, 1 passed, 0 failed, 0 inconclusive, 0 skipped

1. Can I use the Gallio Icarus (i.e. GUI application) for doing the same? If "yes" which settings I must to set?
2. I need the info about the "Properties Tab and about its the nested Tabs (Hint Directories, Test Package, etc). Documentation is not exist.
3. Can I to point in the BAT file the creating of detailed report file?

P.S. People! anybody writes the tests for own AutoCAD plugins? Whether it makes sense to ask questions about this subject? I don't want to speak with myself...
Title: Re: Gallio & AutoCAD's version
Post by: WILL HATCH on April 11, 2014, 02:54:42 AM
You're speaking with yourself, but I'm listening.  It's an area that I need to start understanding in the future!
Title: Re: Gallio & AutoCAD's version
Post by: Andrey Bushman on April 11, 2014, 03:16:42 AM
Some interesting info I've got via the /? key:
Code: [Select]
C:\Users\andrey>"C:\Program Files\Gallio\bin\Gallio.Echo.exe" /? > "c:\public\Gallio.Echo_options.txt"
So I changed my BAT file:

Code: [Select]
SET GALLIO_RUNTIME_PATH=C:\Program Files\Gallio\bin
"C:\Program Files\Gallio\bin\Gallio.Echo.exe" ".\mytests.dll" /r:AutoCAD /rd:".\reports" /rt:XHtml /sr
pause

I see the same result as I expected for the Gallio Icarus. So the Gallio Icarus is not interesting for me already, i.e. I got what I need.

The Topic can be closed.
Title: Re: Gallio & AutoCAD's version
Post by: bargool on April 13, 2014, 10:23:37 AM
Rubber duck debugging (http://en.wikipedia.org/wiki/Rubber_duck_debugging)   :laugh:
Thank you for sharing!
Title: Re: Gallio & AutoCAD's version
Post by: Andrey Bushman on April 28, 2014, 09:37:27 AM
Note: in my previous command line is better to use /rt:Html instead of /rt:XHtml. In this case report will detailed, as report of Icarus.