[flutter_plugin_tool] Refactor createFakePlugin (#4064)

This commit is contained in:
stuartmorgan
2021-06-17 13:29:03 -07:00
committed by GitHub
parent 10486b0ceb
commit 81a6f66eee
21 changed files with 649 additions and 830 deletions

View File

@ -40,7 +40,7 @@ void main() {
final MockProcess mockProcess = MockProcess();
mockProcess.exitCodeCompleter.complete(1);
processRunner.processToReturn = mockProcess;
createFakePlugin('plugin', packagesDir, withExtraFiles: <List<String>>[
createFakePlugin('plugin', packagesDir, extraFiles: <List<String>>[
<String>['lib/test/should_not_run_e2e.dart'],
<String>['example', 'test_driver', 'plugin_e2e.dart'],
<String>['example', 'test_driver', 'plugin_e2e_test.dart'],
@ -65,7 +65,7 @@ void main() {
});
test('runs e2e tests', () async {
createFakePlugin('plugin', packagesDir, withExtraFiles: <List<String>>[
createFakePlugin('plugin', packagesDir, extraFiles: <List<String>>[
<String>['test', 'plugin_test.dart'],
<String>['test', 'plugin_e2e.dart'],
<String>['should_not_run_e2e.dart'],
@ -168,7 +168,7 @@ void main() {
});
test('experimental flag', () async {
createFakePlugin('plugin', packagesDir, withExtraFiles: <List<String>>[
createFakePlugin('plugin', packagesDir, extraFiles: <List<String>>[
<String>['test', 'plugin_test.dart'],
<String>['test', 'plugin_e2e.dart'],
<String>['should_not_run_e2e.dart'],