这是indexloc提供的服务,不要输入任何密码
Skip to content

Invalid retry command if test fails to load #2521

@liamappelbe

Description

@liamappelbe

The test failure log includes a handy command to quickly rerun the failing test. But if the test failed because there's a compile error in the test, that message isn't so useful:

To run this test again: dart test test/other_test.dart -p vm --plain-name 'loading test/other_test.dart'

'loading test/other_test.dart' isn't a real test name, so if you fix the compile error and try to run the command it gives you, no tests are run:

> dart test test/other_test.dart -p vm --plain-name 'loading test/other_test.dart'
Building package executable... 
Built test:test.
No tests ran.                                                                                                  
No tests match "loading test/other_test.dart".

Ideally, the --plain-name part would just be omitted from that message, if the test failed to compile:

To run this test again: dart test test/other_test.dart -p vm

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions