mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 18:51:59 +00:00
bazel: fix e2e (#48982)
`testonly = True` is required to fix the error thrown when: `bazel test //client/web/src/end-to-end:e2e` I updated the test environment for local testing. It still needs a proper update in a follow-up PR. ## Test plan `bazel test //client/web/src/end-to-end:e2e`
This commit is contained in:
parent
aa4c8e290b
commit
52faa9a9d0
@ -29,6 +29,7 @@ def mocha_test(name, tests, deps = [], args = [], data = [], env = {}, **kwargs)
|
||||
# Bundle the tests to remove the use of esm modules in tests
|
||||
esbuild(
|
||||
name = bundle_name,
|
||||
testonly = True,
|
||||
entry_points = tests,
|
||||
platform = "node",
|
||||
target = "node12",
|
||||
@ -61,8 +62,15 @@ def mocha_test(name, tests, deps = [], args = [], data = [], env = {}, **kwargs)
|
||||
"MOCHA_FILE": "$$XML_OUTPUT_FILE",
|
||||
|
||||
# TODO(bazel): e2e test environment
|
||||
"GH_TOKEN": "fake-token",
|
||||
"TEST_USER_PASSWORD": "fake-password",
|
||||
"TEST_USER_EMAIL": "test@sourcegraph.com"
|
||||
"TEST_USER_PASSWORD": "supersecurepassword"
|
||||
"SOURCEGRAPH_BASE_URL": "https://sourcegraph.test:3443"
|
||||
"GH_TOKEN": "fake-gh-token",
|
||||
"SOURCEGRAPH_SUDO_TOKEN": "fake-sg-token",
|
||||
"NO_CLEANUP": "true",
|
||||
"KEEP_BROWSER": "true",
|
||||
"DEVTOOLS": "true",
|
||||
"BROWSER": "chrome"
|
||||
}),
|
||||
tags = ["manual"],
|
||||
**kwargs
|
||||
|
||||
Loading…
Reference in New Issue
Block a user