Testwell CTC++ Integration in Visual Studio
Visual Studio Version | interne Version | Methode |
---|---|---|
97 | 5 | Makefile |
6.0 | 6 | Makefile |
.NET | 7 | Integration |
.NET 2003 | 7.1 | Integration |
2005 | 8 | Integration |
2008 | 9 | Integration |
2010 | 10 | Integration |
2012 | 11 | Integration |
2013 | 12 | Integration |
2015 | 14 | Integration |
2017 | 15 | Integration |
2019 | 16 | Integration |
2022 | 17 | Integration |
Testwell CTC++ kann neben anderen Plattformen auch für Visual Studio verwendet werden.
Für Versionen, welche vor der internen Versionsnummer 7 verwendet wurde, war das Mittel der Wahl wie in vielen anderen IDEs die Modifikation der entsprechenden Makefiles.
Für neuere Versionen (7+) ist der Export der makefiles jedoch nicht mehr möglich, weshalb eine Integration nötig wurde. Die richtige Lösung für ihre Version können Sie der Tabelle 'Unterstütze Versionen von Visual Studio' entnehmen.
Installation der Integration
Um Testwell CTC++ in Visual Studio zu verwenden, führen Sie das dafür nötige Installationsskript aus:cd %CTCHOME%\Vs_integ\ vs_integ.bat -install
Das Skript wird Sie durch die Installation führen. Dies kann folgendermaßen aussehen:
C:\Testwell\CTC\Vs_integ>vs_integ.bat -install This program installs (initial or upgrade) the CTC++ Visual Studio integration for the CURRENT user. First, the possible old Visual Studio Tools commands starting with "CTC" are removed, and then two new CTC++ commands are added to the Tools menu: CTC++ Set/Clean... CTC++ Report... Environment variable CTCWRAPDIR is set and added to Visual Studio Executable Directories settings. In case of Visual Studio 2010 or later, see still %CTCHOME%\Vs_integ\readme.txt. If other users are using Visual Studio on this machine, they need also execute this installation program for being able to use this integration from their userid. If at some later time you wish to remove this CTC++ Visual Studio integration, start this program with the -remove option. Following Visual Studio versions were found from the current user: 12.0 14.0 Please specify the version for which CTC++ Visual Studio integration should be installed. Use version [14.0]: About to install CTC++ to Visual Studio version 14.0 OK to do the install? [Y/n] CTC++ commands added to Tools menu in Visual Studio version 14.0 Done. C:\Testwell\CTC\Vs_integ>
Integration bei älteren Versionen
Sollten Sie eine Version habe, für die Sie eine entsprechende make-file Integration durchführen wollen, gehen Sie bitte folgendermaßen vor:Of course the usage is possible with Microsoft VC++ 6.0 compiler from command line. For example with makefiles, which emit cl and link commands.
If your code is in a Visual Studio 6.0 IDE framework, the usage is possible as follows:
- Export from the project its makefile
- Build the project by 'ctcwrap' and 'nmake', something like the following:
ctcwrap -i d nmake -f myproject.mak clean all - Run the tests normally with the instrumented program
- Take the reports with ctcpost and ctc2html tools in command line mode