http://cxxtest.sourceforge.net
C++ 는 리랙 문 를 는 부 바 등 . 대 대 CUT 등 C UnitTestFramework 부 Perl 등 립 Runner 를 는 방 .
C++ 는 리랙 문 를 는 부 바 등 . 대 대 CUT 등 C UnitTestFramework 부 Perl 등 립 Runner 를 는 방 .
1002 CxxUnit . 립를 Visual Studio Tools( External Tools) 놓 . Tool 뒤, . (cxxtestgen.py 는 CxxTest .) Test 는 들 등.
~cpp from os import * from os.path import * def toStr(aList): return ' '.join(aList) def main(): testFiles = [] for eachFile in listdir("."): if isfile(eachFile): lastestPeriod = eachFile.rfind(".") fileName = eachFile[:lastestPeriod] extension = eachFile[lastestPeriod+1:] if fileName.endswith("Test"): print fileName, extension testFiles.append(eachFile) '''cmd= "python cxxtestgen.py --runner=ParenPrinter --gui=Win32Gui -o runner.cpp "+toStr(testFiles)''' cmd= "python cxxtestgen.py --runner=ParenPrinter -o runner.cpp "+toStr(testFiles) print cmd system(cmd) if __name__=="__main__": main()