Closed pcj closed 8 years ago
I have made some minor changes and updated README.md and created a new release (0.0.4). Take a look and see if this helps.
Yes, that helps. Based on the new comments in the README, it would also be helpful to provide guidance on creating one's own browser definitions.
Yeah, I plan to greatly expand the documentation, but I have been focused on just getting things to work consistently.
For now, you can look at the browser definitions //browser/... as examples.
First of all this looks like a very useful project, thanks for building it. Note that if I clone rules_webtesting 8fca1d048042fb4ba6ad892d3e4dc801a7abcc7c and
bazel test //...
within rules_webtesting itself, all tests pass. Great.When I try to use it with another project, I'm loading
@io_bazel_rules_webtesting
and invokingweb_test_repositories(java = True)
. Per README guidance, I have more or less the followingweb_test_suite
:However, when I try to
bazel test :browser_test_suite
using various browsers above, it fails with similar toThe repository named 'org_chromium_chromedriver' could not be resolved and referenced by '@io_bazel_rules_webtesting//browsers:chromedriver'
.Although listed in
//browsers
, none of those platform workspaces exist, and they aren't loaded by virtue ofweb_test_repositories
. Basically, I can't seem to get any of theplatform_http_file
repository rules to load by normal means. It does not appear thatplatform_http_file
is intended to be used by end-user as it is package-private.However, if I convert
rules_webtesting
to alocal_repository
, change the visibility to public, and use platform_http_file to load those resources in my ownWORKSPACE
(mimicing yours), it works:What am I doing wrong? How are the browsers supposed to get loaded?