简体   繁体   English

VS Code 测试选项卡不再查找测试

[英]VS Code testing tab no longer finds tests

After upgrading from Flutter 2.5.0 to Flutter 2.5.1, the testing tab in VS Code no longer finds all the tests for any of my Flutter projects.从 Flutter 2.5.0 升级到 Flutter 2.5.1 后,VS Code 中的测试选项卡不再找到我的任何 Flutter 项目的所有测试。 Instead, this is all I see:相反,这就是我所看到的:

测试选项卡示例

I've tried downgrading back to 2.5.0, but no luck.我试过降级回 2.5.0,但没有成功。 Obviously, I can still use just use flutter test to run all the tests, but this isn't as nice as the testing UI that was previously available.显然,我仍然可以只使用flutter test来运行所有测试,但这不如之前可用的测试 UI 好。 Other developers on my teams have also run into this problem.我团队中的其他开发人员也遇到了这个问题。 I haven't seen any posts / info about it online or in the Flutter changelogs.我没有在网上或 Flutter 更新日志中看到任何关于它的帖子/信息。 My VS Code version is the exact same from before this became an problem.我的 VS Code 版本与这成为问题之前的版本完全相同。 (VS Code version: 1.60.2) (VS 代码版本:1.60.2)

Any help would be appreciated!任何帮助,将不胜感激!

This is only a temporary fix.这只是临时修复。 But if you downgrade the dart extension in VS Code, then it will bring back the older testing which can find / run all the tests.但是如果你在 VS Code 中降级 dart 扩展,那么它会带回可以找到/运行所有测试的旧测试。

Open the extensions tab in VS Code -> gear icon -> install another version... -> 3.26.0.在 VS Code 中打开扩展选项卡 -> 齿轮图标 -> 安装另一个版本... -> 3.26.0。 After it finds the version, and you select it, you'll need to restart VS Code.在它找到版本并选择它之后,您需要重新启动 VS Code。 Then the old testing should be available.那么旧的测试应该可用。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM