Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Unified Diff: pkg/unittest/lib/html_individual_config.dart

Issue 82113002: Refactoring to allow html_individual_config to pass with zero tests executed. Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/unittest/lib/html_enhanced_config.dart ('k') | tests/html/html.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/unittest/lib/html_individual_config.dart
diff --git a/pkg/unittest/lib/html_individual_config.dart b/pkg/unittest/lib/html_individual_config.dart
index 1c1d11e1e9d316b8ff27c8a4bbbdfac9df95efda..f9e7333744f2737b703f6ffdb4cac5840713380e 100644
--- a/pkg/unittest/lib/html_individual_config.dart
+++ b/pkg/unittest/lib/html_individual_config.dart
@@ -41,6 +41,21 @@ class HtmlIndividualConfiguration extends htmlconfig.HtmlConfiguration {
}
super.onStart();
}
+
+ bool _failedOrErrors = false;
+ void onSummary(int passed, int failed, int errors, List<TestCase> results,
+ String uncaughtError) {
+ super.onSummary(passed, failed, errors, results, uncaughtError);
+
+ _failedOrErrors = failed > 0 || errors > 0;
+ }
+
+ void onDone(bool success) {
+ if (!success) {
+ success = !_failedOrErrors;
+ }
+ super.onDone(success);
+ }
}
void useHtmlIndividualConfiguration([bool isLayoutTest = false]) {
« no previous file with comments | « pkg/unittest/lib/html_enhanced_config.dart ('k') | tests/html/html.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698