Comments (5)
Also, the readme has
load("@io_bazel_rules_webtesting//web:repositories.bzl", "web_test_repositories")
in it but that line errors for me in 0.3.1:
ERROR: error loading package '': Every .bzl file must have a corresponding package, but '@io_bazel_rules_webtesting//web:repositories.bzl' does not have one. Please create a BUILD file in the same or any parent directory. Note that this BUILD file does not need to do anything except exist.
This is on bazel 0.25 and 0.25.1
The full code is:
http_archive(
name = "io_bazel_rules_webtesting",
sha256 = "d71b9dc5fef03cc0c0974305b1c9a3c36f4df1b52ed3d5898f8fa4c5d9d4edb1",
urls = [
"https://github.com/bazelbuild/rules_webtesting/archive/0.3.1.tar.gz",
],
)
load("@io_bazel_rules_webtesting//web:repositories.bzl", "web_test_repositories")
load("@io_bazel_rules_webtesting//web/versioned:browsers-0.3.1.bzl", "browser_repositories")
load("@io_bazel_rules_webtesting//web:go_repositories.bzl", "go_repositories")
web_test_repositories(omit_bazel_skylib = True)
browser_repositories(chrome = True)
go_repositories()
from rules_webtesting.
Looks like that last issue was because the releases need a strip_prefix
call, like so:
rules_webtesting_vers = "0.3.1"
http_archive(
name = "io_bazel_rules_webtesting",
sha256 = "d71b9dc5fef03cc0c0974305b1c9a3c36f4df1b52ed3d5898f8fa4c5d9d4edb1",
strip_prefix = "rules_webtesting-{v}".format(v = rules_webtesting_vers),
urls = [
"https://github.com/bazelbuild/rules_webtesting/archive/{v}.tar.gz".format(v = rules_webtesting_vers),
],
)
Another bug that cropped up is that the browser_repositories
example call says there's a parameter chrome
when there is not. There is a chromium
, however.
But now for some reason, 0.3.1 thinks I need rules_scala even though I don't have any scala code no do I import it. I'm not sure how to get around this.
ERROR: error loading package '@io_bazel_rules_webtesting//scalatests/com/google/testing/web': in /private/var/tmp/_bazel_jeffhodges/15689f02a249bfc2939281a01a900f0c/external/io_bazel_rules_webtesting/web/scala.bzl: Unable to find package for @io_bazel_rules_scala//scala:scala.bzl: The repository '@io_bazel_rules_scala' could not be resolved.
from rules_webtesting.
Yeah, that rules_scala error is happening even on HEAD with the browsers-0.3.2.bzl
load statement.
from rules_webtesting.
Starting with 0.3.0 I recommend that users pull an archive with prebuilt binaries and fewer dependencies (including rules_scala). Unfortunately I forgot to upload the archive for 0.3.1. This is now fixed.
I have added the missing "s to the examples and changed chrome to chromium. Otherwise, AFAICT, the examples are now correct.
from rules_webtesting.
Thank you! That's fixed my issues
from rules_webtesting.
Related Issues (20)
- Flag --incompatible_disable_depset_items will break rules_webtesting in a future Bazel release
- Flag --incompatible_no_implicit_file_export will break rules_webtesting in a future Bazel release
- Unable to load file '...versioned:browsers-0.3.2.bzl': file doesn't exist
- Cannot build `//...` with Bazel 2.0.0
- Chromium test are failing HOT 2
- Coverage support? HOT 1
- Usage within Docker - "bind() failed: Cannot assign requested address (99)" HOT 4
- Update chromium version HOT 1
- Document and fix releaser.sh
- `jasmine_web_test_suite()`
- Debuggable browsers out-of-the-box
- Chromium arm64 provided can't be executed due to spaces in its path. HOT 2
- firefox times out in Github Actions HOT 6
- Flag --incompatible_config_setting_private_default_visibility will break rules_webtesting in Bazel 7.0 HOT 7
- Flag --incompatible_disable_starlark_host_transitions will break rules_webtesting in Bazel 7.0 HOT 3
- configurable attribute "out" in @io_bazel_rules_webtesting//go/wtl/main:main doesn't match this configuration
- Version tags after `v0.2.0` are missing the `v` prefix and no longer usable in `go.mod`
- Updating browser versions and doing a release?
- Transient test failues when running web_test_suite HOT 2
- rules_webtesting is failing with Bazel@HEAD in CI HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rules_webtesting.