Index: pkg/analyzer/test/reflective_tests.dart |
diff --git a/pkg/analyzer/test/reflective_tests.dart b/pkg/analyzer/test/reflective_tests.dart |
index 478877600f628b613100a3c0b449d3f459131eca..b8e5d0a7ae77acc35c20415f562ef4b0647085b4 100644 |
--- a/pkg/analyzer/test/reflective_tests.dart |
+++ b/pkg/analyzer/test/reflective_tests.dart |
@@ -65,8 +65,7 @@ void runReflectiveTests(Type type) { |
throw new Exception('Class $name must have annotation "@reflectiveTest" ' |
'in order to be run by runReflectiveTests.'); |
} |
- String className = MirrorSystem.getName(classMirror.simpleName); |
- group(className, () { |
+ void runMembers() { |
classMirror.instanceMembers |
.forEach((Symbol symbol, MethodMirror memberMirror) { |
// we need only methods |
@@ -105,7 +104,13 @@ void runReflectiveTests(Type type) { |
}); |
} |
}); |
- }); |
+ } |
+ String className = MirrorSystem.getName(classMirror.simpleName); |
+ if (className.endsWith('SoloTest')) { |
+ solo_group(className, runMembers); |
+ } else { |
+ group(className, runMembers); |
+ } |
} |
bool _hasAnnotationInstance(DeclarationMirror declaration, instance) => |