Index: lib/src/runner.dart |
diff --git a/lib/src/runner.dart b/lib/src/runner.dart |
index 80f19b3a31dc0aab95865ae327217d6c6eeb0e2b..4da2710bc7909ce856362c1c3cd44e7b3b50736f 100644 |
--- a/lib/src/runner.dart |
+++ b/lib/src/runner.dart |
@@ -202,15 +202,10 @@ class Runner { |
} |
// If the user provided tags, skip tests that don't match all of them. |
- if (!_config.includeTags.isEmpty && |
- !test.metadata.tags.containsAll(_config.includeTags)) { |
- return false; |
- } |
+ if (!_config.includeTags.evaluate(test.metadata.tags)) return false; |
// Skip tests that do match any tags the user wants to exclude. |
- if (_config.excludeTags.intersection(test.metadata.tags).isNotEmpty) { |
- return false; |
- } |
+ if (_config.excludeTags.evaluate(test.metadata.tags)) return false; |
return true; |
}); |