Skip to content

Commit

Permalink
show reason when test fails
Browse files Browse the repository at this point in the history
  • Loading branch information
ksh-b committed Apr 14, 2024
1 parent 01fb89a commit affb703
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/extractor/common.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ class ExtractorTest {
var article = categoryArticles.first;
expect(article, isNotNull);
expect(article, isA<NewsArticle>());
expect(article.title, isNotEmpty);
expect(article.title, isNotEmpty, reason: "$article");

await publisher.article(article).then((value) {
print(article);
expect(value, isNotNull);
expect(value.publishedAt.key, isNonNegative);
expect(value.publishedAt.key, isNonNegative, reason: article.url);
expect(value.content, isNotEmpty, reason: article.url);
},);
}
Expand Down

0 comments on commit affb703

Please sign in to comment.