google/dart-neats

Dartdoc_test reports no tests run when everything works

Open

#250 创建于 2024年9月2日

在 GitHub 查看
 (2 评论) (1 反应) (0 负责人)Dart (93 fork)auto 404
buggood first issuepkg:dartdoc_test

仓库指标

Star
 (508 star)
PR 合并指标
 (PR 指标待抓取)

描述

Given this lib/abd.dart

/// This class is excellent
/// ```dart
/// void main() {
///   print('hi');
///   main();
/// }
/// ```
class Foo {}
> dart test
00:01 +0: loading test/dartdoc_test.dart                                                                                       Extracting code samples ...
Analyzing code samples ...
No tests ran.                                                                                                                   
No tests were found.

I would have expected at least a single test to have run. If I make a syntax error it does indeed report a failed test.

贡献者指南