createDataTest method
Creates the data test directory structure.
Parameters:
pathTestPage: Base path for test filesfeatureName: Name of the featurepageName: Name of the page
Implementation
void createDataTest(
String pathTestPage,
String featureName,
String pageName,
) {
final dirs = [
'datasources',
'model/body',
'model/response',
'repositories'
];
for (var dir in dirs) {
final path = join(pathTestPage, 'data', dir);
createDir(path);
touch(join(path, '.gitkeep'), create: true);
}
}