首页 > 解决方案 > 测试套件不会加载到 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] 子进程已退出。发送测试运行完成事件。

测试资源管理器面板保持空白。

标签: rubyvisual-studio-codetest-explorer

解决方案


推荐阅读