@@ -68,7 +68,7 @@ void testAll({
6868 late ScriptRef part3Script;
6969 late Stream <Event > stream;
7070
71- setUpAll (() async {
71+ setUp (() async {
7272 setCurrentLogWriter (debug: debug);
7373 await context.setUp (
7474 testSettings: TestSettings (
@@ -100,15 +100,12 @@ void testAll({
100100 part3Script = findScript ('package:$packageName /part3.dart' );
101101 });
102102
103- tearDownAll (() async {
104- await context.tearDown ();
105- });
106-
107103 tearDown (() async {
108- await service. resume (isolateId );
104+ await context. tearDown ( );
109105 });
110106
111- test ('evaluate expression in main library' , () async {
107+ test ('evaluate expression in main library and parts' , () async {
108+ // Main library.
112109 await onBreakPoint (isolateId, mainScript, 'Concatenate1' , () async {
113110 final event = await stream.firstWhere (
114111 (event) => event.kind == EventKind .kPauseBreakpoint,
@@ -129,9 +126,9 @@ void testAll({
129126 ),
130127 );
131128 });
132- } );
129+ await service. resume (isolateId );
133130
134- test ( 'evaluate expression in part1' , () async {
131+ // Part 1.
135132 await onBreakPoint (isolateId, part1Script, 'Concatenate2' , () async {
136133 final event = await stream.firstWhere (
137134 (event) => event.kind == EventKind .kPauseBreakpoint,
@@ -152,9 +149,9 @@ void testAll({
152149 ),
153150 );
154151 });
155- } );
152+ await service. resume (isolateId );
156153
157- test ( 'evaluate expression in part2' , () async {
154+ // Part 2.
158155 await onBreakPoint (isolateId, part2Script, 'Concatenate3' , () async {
159156 final event = await stream.firstWhere (
160157 (event) => event.kind == EventKind .kPauseBreakpoint,
@@ -175,9 +172,9 @@ void testAll({
175172 ),
176173 );
177174 });
178- } );
175+ await service. resume (isolateId );
179176
180- test ( 'evaluate expression in part3' , () async {
177+ // Part 3.
181178 await onBreakPoint (isolateId, part3Script, 'Concatenate4' , () async {
182179 final event = await stream.firstWhere (
183180 (event) => event.kind == EventKind .kPauseBreakpoint,
@@ -198,6 +195,7 @@ void testAll({
198195 ),
199196 );
200197 });
198+ await service.resume (isolateId);
201199 });
202200 });
203201}
0 commit comments