如果没有CMAKE,是否可以在Microsoft Visual Studio中使用fytest?

发布于 2025-02-13 06:18:50 字数 483 浏览 0 评论 0 原文

我正在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...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

猥琐帝 2025-02-20 06:18:50

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).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文