node.js - 无法在 Pycharm 中将目录标记为 javascript 的测试源

标签 node.js unit-testing pycharm

我已在计算机上安装了 node.jsnodeunit。现在,我按照 JetBrains 的说明在此处创建单元测试 https://www.jetbrains.com/help/pycharm/unit-testing-node-js.html :

enter image description here

具体来说,此步骤:将 _tests_ 标记为“测试目录”:由于某种原因,该选项在右键单击/上下文菜单中不可用:

enter image description here

缺少什么才能使该选项可用?

最佳答案

此选项在 PyCharm 中不可用。

如果没有它,请按照说明进行操作,一切都应该按预期进行。

https://www.jetbrains.com/help/pycharm/unit-testing-node-js.html已更新。

关于node.js - 无法在 Pycharm 中将目录标记为 javascript 的测试源,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59925280/

相关文章:

java - @RepeatedTest 未启动

c# - MassTransit 消费者测试已通过,但引发了令人困惑的错误

python - 在 ubuntu 上使用 pycharm 时导入 gnuradio

node.js - 源代码控制集成 - 只读文件 - 无法编译?

javascript - array.prototype.flat 在 nodejs 中未定义

node.js - 必须设置使用 web-fulfillment 和 firebase 抛出 MalformedResponse 'final_response' 的操作

python - 运行测试 Django Pycharm 时使用了错误的表

javascript更新或向数组添加值

Python "responses"模拟 - 无法多次调用一个 URL

python - 在 PyCharm 中,运行单元测试时如何向 pytest 添加自定义参数?