@@ -68,7 +68,7 @@ void testAll({
68
68
late ScriptRef part3Script;
69
69
late Stream <Event > stream;
70
70
71
- setUpAll (() async {
71
+ setUp (() async {
72
72
setCurrentLogWriter (debug: debug);
73
73
await context.setUp (
74
74
testSettings: TestSettings (
@@ -100,15 +100,12 @@ void testAll({
100
100
part3Script = findScript ('package:$packageName /part3.dart' );
101
101
});
102
102
103
- tearDownAll (() async {
104
- await context.tearDown ();
105
- });
106
-
107
103
tearDown (() async {
108
- await service. resume (isolateId );
104
+ await context. tearDown ( );
109
105
});
110
106
111
- test ('evaluate expression in main library' , () async {
107
+ test ('evaluate expression in main library and parts' , () async {
108
+ // Main library.
112
109
await onBreakPoint (isolateId, mainScript, 'Concatenate1' , () async {
113
110
final event = await stream.firstWhere (
114
111
(event) => event.kind == EventKind .kPauseBreakpoint,
@@ -129,9 +126,9 @@ void testAll({
129
126
),
130
127
);
131
128
});
132
- } );
129
+ await service. resume (isolateId );
133
130
134
- test ( 'evaluate expression in part1' , () async {
131
+ // Part 1.
135
132
await onBreakPoint (isolateId, part1Script, 'Concatenate2' , () async {
136
133
final event = await stream.firstWhere (
137
134
(event) => event.kind == EventKind .kPauseBreakpoint,
@@ -152,9 +149,9 @@ void testAll({
152
149
),
153
150
);
154
151
});
155
- } );
152
+ await service. resume (isolateId );
156
153
157
- test ( 'evaluate expression in part2' , () async {
154
+ // Part 2.
158
155
await onBreakPoint (isolateId, part2Script, 'Concatenate3' , () async {
159
156
final event = await stream.firstWhere (
160
157
(event) => event.kind == EventKind .kPauseBreakpoint,
@@ -175,9 +172,9 @@ void testAll({
175
172
),
176
173
);
177
174
});
178
- } );
175
+ await service. resume (isolateId );
179
176
180
- test ( 'evaluate expression in part3' , () async {
177
+ // Part 3.
181
178
await onBreakPoint (isolateId, part3Script, 'Concatenate4' , () async {
182
179
final event = await stream.firstWhere (
183
180
(event) => event.kind == EventKind .kPauseBreakpoint,
@@ -198,6 +195,7 @@ void testAll({
198
195
),
199
196
);
200
197
});
198
+ await service.resume (isolateId);
201
199
});
202
200
});
203
201
}
0 commit comments