comparison mrjunejune/test/BUILD @ 241:9c2eec61a152

[assets] Generate site images as WebP with Bazel
author MrJuneJune <me@mrjunejune.com>
date Mon, 03 Aug 2026 11:26:30 -0700
parents f3084bca7317
children 543df0fe7168
comparison
equal deleted inserted replaced
240:c345083cd8a7 241:9c2eec61a152
1 load("@rules_cc//cc:cc_binary.bzl", "cc_binary") 1 load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
2 load("@rules_cc//cc:cc_test.bzl", "cc_test") 2 load("@rules_cc//cc:cc_test.bzl", "cc_test")
3 load("@aspect_rules_js//js:defs.bzl", "js_test")
3 load("//gui_ze:gui_ze.bzl", "move_files_into_dir", "bundle") 4 load("//gui_ze:gui_ze.bzl", "move_files_into_dir", "bundle")
4 5
5 # Files needed for test 6 # Files needed for test
6 filegroup( 7 filegroup(
7 name = "test_snapshots", 8 name = "test_snapshots",
44 ], 45 ],
45 size = "large", 46 size = "large",
46 timeout = "long", 47 timeout = "long",
47 args = ["$(location //mrjunejune:mrjunejune_server)"], 48 args = ["$(location //mrjunejune:mrjunejune_server)"],
48 ) 49 )
50
51 js_test(
52 name = "theme_and_webp_test",
53 entry_point = "theme_and_webp_test.js",
54 data = [
55 "//hg-web/e2e:node_modules/playwright-core",
56 "//mrjunejune:mrjunejune_server",
57 "@playwright_chromium_linux//:chrome",
58 "@playwright_chromium_linux//:chromium",
59 ],
60 env = {
61 "CHROMIUM_PATH": "$(rootpath @playwright_chromium_linux//:chrome)",
62 },
63 no_copy_to_bin = ["@playwright_chromium_linux//:chromium"],
64 size = "large",
65 target_compatible_with = [
66 "@platforms//cpu:x86_64",
67 "@platforms//os:linux",
68 ],
69 timeout = "long",
70 )