google / dart-neats

neat dart packages.
Apache License 2.0
466 stars 86 forks source link

Dartdoc_test reports no tests run when everything works #250

Open sigurdm opened 2 months ago

sigurdm commented 2 months ago

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.

jonasfj commented 2 months ago

@takumma FYI, in case you're interested.