mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[web] changing the integration tests to show errors (#17364)
* changing the integration tests to show errors. The drive file is reduced to nothing now * adding more to readme * rebase to master and removing unused import * changing readme
This commit is contained in:
parent
91ccdbe7f1
commit
3ee9e3d378
@ -5,12 +5,18 @@ configuration (e.g. PWA vs non-PWA packaging), please create another
|
||||
directory under e2etests/web. Otherwise tests such as text_editing, history,
|
||||
scrolling, pointer events... should all go under this package.
|
||||
|
||||
# To run the application under test for traouble shooting purposes.
|
||||
Tests can be run on both 'release' and 'profile' modes. However 'release' mode
|
||||
will shorten the error. Use 'profile' mode for trouble-shooting purposes where
|
||||
you can also see the full stack trace.
|
||||
|
||||
# To run the application under test for trouble shooting purposes.
|
||||
flutter run -d web-server lib/text_editing_main.dart --local-engine=host_debug_unopt
|
||||
|
||||
# To run the Text Editing test and use the developer tools in the browser.
|
||||
flutter run --target=test_driver/text_editing_e2e.dart -d web-server --web-port=8080 --release --local-engine=host_debug_unopt
|
||||
flutter run --target=test_driver/text_editing_e2e.dart -d web-server --web-port=8080 --profile --local-engine=host_debug_unopt
|
||||
|
||||
# To test the Text Editing test with driver you either of the following:
|
||||
flutter drive -v --target=test_driver/text_editing_e2e.dart -d web-server --profile --browser-name=chrome --local-engine=host_debug_unopt
|
||||
|
||||
# To test the Text Editing test with driver:
|
||||
flutter drive -v --target=test_driver/text_editing_e2e.dart -d web-server --release --browser-name=chrome --local-engine=host_debug_unopt
|
||||
```
|
||||
|
||||
@ -13,10 +13,10 @@ dev_dependencies:
|
||||
sdk: flutter
|
||||
flutter_test:
|
||||
sdk: flutter
|
||||
e2e: 0.2.4+4
|
||||
e2e: 0.4.0
|
||||
http: 0.12.0+2
|
||||
test: any
|
||||
|
||||
flutter:
|
||||
assets:
|
||||
- assets/images/
|
||||
- assets/images/
|
||||
|
||||
@ -3,7 +3,6 @@
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'dart:html' as html;
|
||||
import 'package:flutter/widgets.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:regular_integration_tests/image_loading_main.dart' as app;
|
||||
|
||||
|
||||
@ -2,16 +2,6 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'dart:io';
|
||||
import 'package:e2e/e2e_driver.dart' as e2e;
|
||||
|
||||
import 'package:flutter_driver/flutter_driver.dart';
|
||||
|
||||
Future<void> main() async {
|
||||
final FlutterDriver driver = await FlutterDriver.connect();
|
||||
|
||||
final String dataRequest =
|
||||
await driver.requestData(null, timeout: const Duration(seconds: 1));
|
||||
await driver.close();
|
||||
|
||||
exit(dataRequest == 'pass' ? 0 : 1);
|
||||
}
|
||||
Future<void> main() async => e2e.main();
|
||||
|
||||
@ -2,18 +2,6 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'dart:io';
|
||||
import 'package:e2e/e2e_driver.dart' as e2e;
|
||||
|
||||
import 'package:flutter_driver/flutter_driver.dart';
|
||||
|
||||
Future<void> main() async {
|
||||
final FlutterDriver driver = await FlutterDriver.connect();
|
||||
|
||||
// TODO(nurhan): https://github.com/flutter/flutter/issues/51940
|
||||
final String dataRequest =
|
||||
await driver.requestData(null, timeout: const Duration(seconds: 1));
|
||||
print('result $dataRequest');
|
||||
await driver.close();
|
||||
|
||||
exit(dataRequest == 'pass' ? 0 : 1);
|
||||
}
|
||||
Future<void> main() async => e2e.main();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user