aspect-build / aspect-build/rules_js

[FR]: integrate with rules_webtesting / selenium / webdriver

Open
#1,823 2 comments 0 reactions 0 assignees View on GitHub
documentation enhancement
Dominant language
Starlark
Stars
378
Forks
183
Avg merge
1d 9h
Merged PRs (30d)
32

Description

### What is the current behavior?

There is no documented way on how to write js tests that perform browser testing using selenium and others.
In Bazel, we already have [rules_webtesting](https://github.com/bazelbuild/rules_webtesting) that takes care of setting up browsers and it integrates with Java, Scala, Python and Go. There seems to be no easy way to do webtesting with rules_js right now.

### Describe the feature

You could use [wrap_web_test_suite](https://github.com/bazelbuild/rules_webtesting/blob/d8208bddac1e44b3327430cc422f952b3244536a/web/internal/wrap_web_test_suite.bzl) to get a js_test that has access to browsers for testing.

Contributor guide

Open the contributing guide

Research direction

Start by reading rules_webtesting's web/internal/wrap_web_test_suite.bzl and the rules_js js_test entry point. Compare how wrap_web_test_suite exposes browsers to Java, Scala, Python, and Go tests, then determine the integration scope. Done means JavaScript tests can use the configured browsers through rules_js with a documented setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
build-system, testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.