title | layout | stylesheet |
---|---|---|
Protractor |
default |
docs |
The Protractor rules run tests under the Protractor framework with Bazel.
Add the @bazel/protractor
npm package to your devDependencies
in package.json
.
Your WORKSPACE
should declare a yarn_install
or npm_install
rule named npm
.
It should then install the rules found in the npm packages using the `install_bazel_dependencies' function.
See https://github.com/bazelbuild/rules_nodejs/#quickstart
This causes the @bazel/protractor
package to be installed as a Bazel workspace named npm_bazel_protractor
.
Runs a protractor test in a browser.
protractor_web_test(name, configuration, on_prepare, srcs, deps, data, server, tags, peer_deps, protractor_entry_point, kwargs)
The name of the test
Protractor configuration file.
Defaults to None
A file with a node.js script to run once before all tests run. If the script exports a function which returns a promise, protractor will wait for the promise to resolve before beginning tests.
Defaults to None
JavaScript source files
Defaults to []
Other targets which produce JavaScript such as ts_library
Defaults to []
Runtime dependencies
Defaults to []
Optional server executable target
Defaults to None
Standard Bazel tags, this macro adds one for ibazel
Defaults to []
List of peer npm deps required by protractor_web_test.
Defaults to ["@npm//@bazel/protractor", "@npm//protractor"]
A label providing the @npm//protractor entry point.
Default to @npm//:node_modules/protractor/bin/protractor
.
Defaults to "@npm//:node_modules/protractor/bin/protractor"
passed through to protractor_web_test
Defines a test_suite of web_test targets that wrap a protractor_web_test target.
protractor_web_test_suite(name, browsers, web_test_data, wrapped_test_tags, kwargs)
The base name of the test
A sequence of labels specifying the browsers to use.
Defaults to None
Data dependencies for the wrapoer web_test targets.
Defaults to []
A list of test tag strings to use for the wrapped karma_web_test target.
Defaults to ["manual", "noci"]
Arguments for the wrapped karma_web_test target.