commit | 56e7bf03e2716968a47973bcdd87901fd116b1b0 | [log] [tgz] |
---|---|---|
author | Nate Bosch <nbosch1@gmail.com> | Wed Jan 18 10:17:48 2017 -0800 |
committer | Marc Fisher <fisherii@google.com> | Wed Jan 18 10:17:48 2017 -0800 |
tree | 772a55ef397328721c4fed3328a43b2f320d092f | |
parent | f59dcecee48f3cf3cbdbaf377aadc55280e90f78 [diff] |
Use a custom skylark rule to generate io tests (#139) The current approach depends on internal details of dart_codegen that won't be supported going forward. Since this is a very simple string replacement use the skylark template_action instead of a Dart script. - Add _generate_io_tests.bzl with a single rule that can do the test rewriting - Drop transform_tests.dart and the related dart_vm_binary - Use the new _generate_io_tests rather than dart_codegen
Provides WebDriver bindings for Dart. These use the WebDriver JSON interface, and as such, require the use of the WebDriver remote server.
Depend on it
Add this to your package's pubspec.yaml file:
dependencies: webdriver: any
If your package is an application package you should use any as the version constraint.
Install it
If you're using the Dart Editor, choose:
Menu > Tools > Pub Install
Or if you want to install from the command line, run:
$ pub install
Import it
Now in your Dart code, you can use:
import 'package:webdriver/io.dart'; WebDriver driver = createDriver(...);
You can run the tests either with bazel (only supported on Linux).
bazel test ...