0
我有些的.cpp和居住路徑C++編譯CppUnit的文件和執行XML報告
〜/的NetBeansProjects /所有MyApplication
main.cpp
person.cpp
person.h
.h文件和我有CppUnit的的.cpp和.h文件駐留在路徑
〜/的NetBeansProjects/MyApplication的/測試
TestCase.cpp
TestCase.h
finalresults.cpp
假設我我在〜和我有cd到目錄
/NetBeansProjects/myApplication in my terminal
我想做一個G ++連同我的CppUnit的文件生成的CppUnit的測試結果的XML報告。
我添加的XMLOutputter我finalresults.cpp
std::ofstream xmlFileOut("testResults.xml");
XmlOutputter xmlOut(&collectedresults, xmlFileOut);
xmlOut.write();
the command to use(as suggested) g++ -o finaltestresults person.cpp main.cpp tests/TestCase.cpp tests/finalresults.cpp -lcppunit
我的程序成功運行,但正在創建沒有XML。
我需要做什麼額外的步驟?
我有一個加XmOutPutter在我finalresults.cpp,我跑的命令,它成功地建立我的計劃,但正在創建沒有XML。我該怎麼辦? – user3493435