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
4 files changed
tree: 772a55ef397328721c4fed3328a43b2f320d092f
  1. browsers/
  2. build_files/
  3. lib/
  4. test/
  5. third_party/
  6. .analysis_options
  7. .gitignore
  8. .travis.yml
  9. _generate_io_tests.bzl
  10. AUTHORS
  11. BUILD
  12. CHANGELOG.md
  13. CONTRIBUTING.md
  14. LICENSE
  15. pubspec.yaml
  16. README.md
  17. repositories.bzl
  18. WORKSPACE
README.md

webdriver

Build Status pub package

Provides WebDriver bindings for Dart. These use the WebDriver JSON interface, and as such, require the use of the WebDriver remote server.

Installing

  1. 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.

  2. 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
    
  3. Import it

    Now in your Dart code, you can use:

    import 'package:webdriver/io.dart';
    
    WebDriver driver = createDriver(...);
    

Testing

You can run the tests either with bazel (only supported on Linux).


bazel test ...