ruby - 测试套件不会加载到 VSCode Ruby 测试资源管理器中
问题描述
我正在尝试使用 VSCode 的 Ruby Test Explorer 扩展,但它无法加载我的测试套件。
我的测试都在我根目录的 ./test/ 文件夹中。这是我的测试资源管理器设置:
"rubyTestExplorer.testFramework": "rspec",
"rubyTestExplorer.rspecCommand": "rspec",
"rubyTestExplorer.rspecDirectory": "./test/",
"rubyTestExplorer.logpanel": true
记录器输出显示以下内容:
[2020-05-22 17:10:53.877] [INFO] 运行 Ruby 测试 ["root"] [2020-05-22 17:10:53.878] [INFO] 运行完整的测试套件。[2020-05-22 17:10:53.878] [INFO] 运行命令:rspec --require /Users/Home/.vscode/extensions/connorshea.vscode-ruby-test-adapter-0.7.1/custom_formatter.rb - -format CustomFormatter [2020-05-22 17:10:54.095] [DEBUG] [CHILD PROCESS OUTPUT] START_OF_TEST_JSON{"version":"3.9.2","messages":["No examples found."],"examples ":[],"summary":{"duration":0.000242,"example_count":0,"failure_count":0,"pending_count":0,"errors_outside_of_examples_count":0},"summary_line":"0 个例子,0失败”}END_OF_TEST_JSON [2020-05-22 17:10:54.096] [DEBUG] 解析以下 JSON:[2020-05-22 17:10:54。096] [DEBUG] {"version":"3.9.2","messages":["No examples found."],"examples":[],"summary":{"duration":0.000242,"example_count" :0,"failure_count":0,"pending_count":0,"errors_outside_of_examples_count":0},"summary_line":"0 个示例,0 个失败"} [2020-05-22 17:10:54.102] [INFO] 孩子进程已退出。发送测试运行完成事件。102] [INFO] 子进程已退出。发送测试运行完成事件。102] [INFO] 子进程已退出。发送测试运行完成事件。
测试资源管理器面板保持空白。
解决方案
推荐阅读
- c# - 是否可以将文本框作为参数传递?
- java - 后缀“StringIndexOutOfBoundsException”错误的中缀
- algorithm - 解决黑客地球问题的算法
- ios - 如何删除 iOS 通知服务扩展中的文件?
- javascript - 我的已部署网站仅在登录页面上显示 readme.md
- r - 填写缺失的日期并添加“0”
- r - 使用 dplyr 从 R 中的多个列创建多个二维表
- google-analytics - 在谷歌分析中显示自定义维度值
- css - 网格项目跨度不会超过 1 列
- apache-kafka - 在 Kafka DR 场景中使用 Observer Zookeeper