@@ -252,7 +252,7 @@ class ${clazz}Test {
252
252
);
253
253
}
254
254
255
- Future <TestBuilderInfo > generateInstrumentedTest (
255
+ Future <TestBuilderInfo > generateIntegrationTest (
256
256
dynamic config,
257
257
String srcPath,
258
258
String className,
@@ -264,25 +264,25 @@ Future<TestBuilderInfo> generateInstrumentedTest(
264
264
String fileName = srcPath.split ('/' ).last;
265
265
String name = fileName.split ('.' ).first;
266
266
String dirPath = srcPath.replaceAll (fileName, '' );
267
- String testPath = '${dirPath }catalog/instrumented_test /' ;
267
+ String testPath = '${dirPath }catalog/integration_test /' ;
268
268
269
269
await Directory (testPath).create (recursive: true );
270
270
271
- String testFile = '$testPath ${name }_instrumented_test .dart' ;
271
+ String testFile = '$testPath ${name }_integration_test .dart' ;
272
272
File file = File (testFile);
273
273
274
274
var importParts = classImport.split ('/' );
275
275
importParts.removeAt (importParts.length - 1 );
276
276
importParts.add (config['output' ]);
277
- importParts.add ('instrumented_test ' );
278
- importParts.add ('${name }_instrumented_test .dart' );
277
+ importParts.add ('integration_test ' );
278
+ importParts.add ('${name }_integration_test .dart' );
279
279
280
280
if (await file.exists ()) {
281
281
print (
282
- '🧪 👌 Test file already exist for $clazz - ${clazz }InstrumentedTest ($testFile )' );
282
+ '🧪 👌 Test file already exist for $clazz - ${clazz }IntegrationTest ($testFile )' );
283
283
return TestBuilderInfo (
284
284
alias: buildTestAlias (4 ),
285
- clazzName: '${clazz }InstrumentedTest ' ,
285
+ clazzName: '${clazz }IntegrationTest ' ,
286
286
import: importParts.join ('/' ),
287
287
);
288
288
}
@@ -300,10 +300,10 @@ import 'package:catalog/catalog.dart';
300
300
import '../dummy/$name .dummy.dart';
301
301
import '../preview/$name .$prefix .dart';
302
302
303
- class ${clazz }InstrumentedTestTest {
303
+ class ${clazz }IntegrationTestTest {
304
304
void main() {
305
305
group(
306
- '$clazz - InstrumentedTest Tests',
306
+ '$clazz - IntegrationTest Tests',
307
307
() {
308
308
testWidgets(
309
309
'Lorem text not found',
@@ -337,7 +337,7 @@ class ${clazz}InstrumentedTestTest {
337
337
338
338
return TestBuilderInfo (
339
339
alias: buildTestAlias (4 ),
340
- clazzName: '${clazz }InstrumentedTest ' ,
340
+ clazzName: '${clazz }IntegrationTest ' ,
341
341
import: importParts.join ('/' ),
342
342
);
343
343
}
@@ -368,13 +368,19 @@ void main() {
368
368
await file.writeAsString (content);
369
369
}
370
370
371
- Future <void > generateMainInstrumentedTest (
371
+ Future <void > generateMainIntegrationTest (
372
372
String basePath,
373
373
List <TestBuilderInfo > tests,
374
374
) async {
375
- File file = File ('./${basePath }instrumented_test/catalog_widget_instrumented_test.dart' );
376
375
377
- print ('🧪 Updating catalog instrumented test collector (${file .path })' );
376
+ String testPath = './${basePath }integration_test/' ;
377
+
378
+ await Directory (testPath).create (recursive: true );
379
+
380
+
381
+ File file = File ('./${basePath }integration_test/catalog_widget_integration_test.dart' );
382
+
383
+ print ('🧪 Updating catalog integration test collector (${file .path })' );
378
384
379
385
var content = '''
380
386
/// AUTOGENERATED FILE. DO NOT EDIT
0 commit comments