google/dart-neats

Dartdoc_test reports no tests run when everything works

Open

#250 aperta il 2 set 2024

Vedi su GitHub
 (2 commenti) (1 reazione) (0 assegnatari)Dart (93 fork)auto 404
buggood first issuepkg:dartdoc_test

Metriche repository

Star
 (508 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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.

Guida contributor