在visualcode中包含CPPUnit测试

时间:2019-06-09 14:49:11

标签: c++ visual-studio-code cppunit

我正在从以下位置研究本教程: http://www.evocomp.de/tutorials/tutorium_cppunit/howto_tutorial_cppunit.html 而且我无法在Mac上的Visual Code中包含CPPUnit目录的标头。 CPPUnit安装在我的〜文件夹中,例如HelperMacos.h,v这样的示例头文件,路径为:

~/cppunit-cvs-repo-archive/cppunit/extensions/HelperMacros.h,v

我尝试通过添加以下行来在includePath的{​​{1}}部分下包含路径:

c_cpp_properties.json

用于将头文件包含在我的Visual Studio代码中,但是该程序给我一个错误。例如,它说: 当我尝试加入 "~/cppunit-cvs-repo-archive/cppunit/", "~/cppunit-cvs-repo-archive/cppunit/include/", "~/cppunit-cvs-repo-archive/cppunit/extensions/" 时:

cannot open source file "cppunit/TestCaller.h" (dependency of "cppunit/extensions/HelperMacros.h,v")

0 个答案:

没有答案