google/dart-neats

Dartdoc_test reports no tests run when everything works

Open

#250 opened on Sep 2, 2024

View on GitHub
 (2 comments) (1 reaction) (0 assignees)Dart (93 forks)auto 404
buggood first issuepkg:dartdoc_test

Repository metrics

Stars
 (508 stars)
PR merge metrics
 (PR metrics pending)

Description

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.

Contributor guide