WebStorm DartUnit with test api, run/debug error

后端 未结 1 1138
遇见更好的自我
遇见更好的自我 2021-01-24 03:59

I\'m using WebStorm IDE and test api which is named unittest before. The test works fine using the command:

pub run test:test test/sample.dart

相关标签:
1条回答
  • 2021-01-24 04:57

    WebStorm is still hardwired to the old unittest package. There is an open issue to fix this https://youtrack.jetbrains.com/issue/WEB-16053

    You can however execute Dart test scripts using the new test package like any other Dart script, to be able to use the debugger. If you use custom HTML pages for your tests, you need to replace the x-dart-test link to a proper Dart script tag to be able to execute it from WebStorm.

    0 讨论(0)
提交回复
热议问题