mirror of
https://github.com/golang/go
synced 2024-11-05 15:06:09 -07:00
d7ab245118
Govim has integration tests that we can leverage to help guard gopls against regressions. Changes have been submitted upstream to facilitate running these tests against a locally built gopls binary (https://github.com/govim/govim/pull/629) This CL adds a Dockerfile to build an image that has a version of govim available and ready for testing. This is then used to create a custom build step in a separate Cloud Build configuration, that builds gopls from source and runs the govim integration tests. A script (run_local.sh) is also added to facilitate running these tests locally. Change-Id: If68eabf9863a1689e29d9d744ff953d94a2b7681 Reviewed-on: https://go-review.googlesource.com/c/tools/+/212018 Reviewed-by: Paul Jolly <paul@myitcv.org.uk> Reviewed-by: Rebecca Stambler <rstambler@golang.org> Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> |
||
---|---|---|
.. | ||
cloudbuild.harness.yaml | ||
cloudbuild.yaml | ||
Dockerfile | ||
README.md | ||
run_local.sh |
govim integration tests
Files in this directory configure Cloud Build to run govim integration tests against a gopls binary built from source.
Running on GCP
To run these integration tests in Cloud Build (assuming the gcloud
command is
configured for a valid GCP project):
cd
to the root directory of the tools project.- (at least once per GCP project) Build the test harness:
$ gcloud builds submit --config=gopls/integration/govim/cloudbuild.harness.yaml
- Run the integration tests:
$ gcloud builds submit --config=gopls/integration/govim/cloudbuild.yaml
Running locally
Run gopls/integration/govim/run_local.sh
. This may take a while the first
time it is run, as it will require building the test harness. Currently this
script assumes that docker may be executed without sudo
.