Unverified Commit 25815877 authored by Jason Simmons's avatar Jason Simmons Committed by GitHub

Activate DevTools before running an integration test that uses DevTools (#82393)

parent f53fb34b
......@@ -445,8 +445,19 @@ void main() {
}, skip: Platform.isWindows); // TODO(jonahwilliams): Re-enable when this test is reliable on device lab, https://github.com/flutter/flutter/issues/81556
testWithoutContext('flutter error messages include a DevTools link', () async {
final String tempDirectory = fileSystem.systemTempDirectory.createTempSync('flutter_overall_experience_test.').resolveSymbolicLinksSync();
final String testDirectory = fileSystem.path.join(flutterRoot, 'dev', 'integration_tests', 'ui');
// Ensure that DevTools is activated.
final ProcessResult pubResult = await processManager.run(<String>[
fileSystem.path.join(flutterRoot, 'bin', 'cache', 'dart-sdk', 'bin', 'dart'),
'pub', 'global', 'activate', 'devtools',
], workingDirectory: testDirectory).timeout(const Duration(seconds: 20));
if (pubResult.exitCode != 0) {
print('Unable to activate devtools:\n${pubResult.stderr}');
}
expect(pubResult.exitCode, 0);
final String tempDirectory = fileSystem.systemTempDirectory.createTempSync('flutter_overall_experience_test.').resolveSymbolicLinksSync();
final String testScript = fileSystem.path.join('lib', 'overflow.dart');
try {
final ProcessTestResult result = await runFlutter(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment