我正在Fortran的旧旧代码开发,并且正在尝试实施单元测试以实现更安全的开发环境。 ” https://fortranwiki.org/fortran/show/nofollow noreferrer'将是最合适的。
但是,要自动运行测试,它需要CMAKE构建指令,目前我还没有在公司计算机上安装它(我可以要求它的必要性,但这是我试图避免的漫长而累人的过程)。开发公司软件是Microsoft Visual Studio(2010年版)。 Visual Studio有没有办法进行FYTEST?我注意到在Visual Studio中创建一个项目会创建一个“解决方案文件”( .sln
),但是我不知道是否可以对其进行适应与CMAKE一样的工作。 ..
I am developing on an old legacy code in Fortran, and I am trying to implement unit testing to enable a more secure development environment. From all the options given in the Fortran Wiki on this page, I evaluated FyTest would be the most suitable one.
However, to automatically run the tests, it needs a CMake build instruction, which currently I don't have installed on the company computer (I could ask for its necessity, but that is a long and tiresome process I am trying to avoid). The company software for development is Microsoft Visual Studio (version 2010). Is there a way "native" to Visual Studio for running FyTest? I noticed that creating a project in Visual Studio creates a "solution file" (.sln
), but I don't know if it is possible to adapt it to do the same work as CMake would do...
发布评论
评论(1)
对 fytest 的本地支持是VS2010,也没有任何其他VS版本。您最好的选择是将 fytest
cmakelists.txt
捆绑到您的CMAKE项目中(您所选的IDE与CMAKE项目之间没有直接依赖性)。There is no native support for FyTest is VS2010, nor in any other VS version. Your best option would be bundeling the FyTest
CMakeLists.txt
into your CMake project (there is no direct dependency between your selected IDE and the CMake project for that matter).