mirror of
https://github.com/ossf/scorecard.git
synced 2024-09-11 08:55:27 +03:00
🌱 GitLab: track coverage for gitlab e2e tests (#3601)
Signed-off-by: Raghav Kaul <raghavkaul@google.com>
This commit is contained in:
parent
52f950bf77
commit
622f10442c
6
Makefile
6
Makefile
@ -331,15 +331,15 @@ e2e-pat: build-scorecard check-env | $(GINKGO)
|
|||||||
e2e-gh-token: ## Runs e2e tests. Requires GITHUB_AUTH_TOKEN env var to be set to default GITHUB_TOKEN
|
e2e-gh-token: ## Runs e2e tests. Requires GITHUB_AUTH_TOKEN env var to be set to default GITHUB_TOKEN
|
||||||
e2e-gh-token: build-scorecard check-env | $(GINKGO)
|
e2e-gh-token: build-scorecard check-env | $(GINKGO)
|
||||||
# Run e2e tests. GITHUB_AUTH_TOKEN set to secrets.GITHUB_TOKEN must be used to run this.
|
# Run e2e tests. GITHUB_AUTH_TOKEN set to secrets.GITHUB_TOKEN must be used to run this.
|
||||||
GITLAB_AUTH_TOKEN="" TOKEN_TYPE="GITHUB_TOKEN" $(GINKGO) --race -p -v -cover -coverprofile=e2e-coverage.out --keep-separate-coverprofiles ./...
|
GITLAB_AUTH_TOKEN="" TOKEN_TYPE="GITHUB_TOKEN" $(GINKGO) --race -p -v -coverprofile=e2e-coverage.out --keep-separate-coverprofiles ./...
|
||||||
|
|
||||||
e2e-gitlab-token: ## Runs e2e tests that require a GITLAB_TOKEN
|
e2e-gitlab-token: ## Runs e2e tests that require a GITLAB_TOKEN
|
||||||
e2e-gitlab-token: build-scorecard check-env-gitlab | $(GINKGO)
|
e2e-gitlab-token: build-scorecard check-env-gitlab | $(GINKGO)
|
||||||
TEST_GITLAB_EXTERNAL=1 TOKEN_TYPE="GITLAB_PAT" $(GINKGO) --race -p -vv --focus '.*GitLab' ./...
|
TEST_GITLAB_EXTERNAL=1 TOKEN_TYPE="GITLAB_PAT" $(GINKGO) --race -p -vv -coverprofile=e2e-coverage.out --keep-separate-coverprofiles --focus '.*GitLab' ./...
|
||||||
|
|
||||||
e2e-gitlab: ## Runs e2e tests for GitLab only. TOKEN_TYPE is not used (since these are public APIs), but must be set to something
|
e2e-gitlab: ## Runs e2e tests for GitLab only. TOKEN_TYPE is not used (since these are public APIs), but must be set to something
|
||||||
e2e-gitlab: build-scorecard | $(GINKGO)
|
e2e-gitlab: build-scorecard | $(GINKGO)
|
||||||
TEST_GITLAB_EXTERNAL=1 TOKEN_TYPE="PAT" $(GINKGO) --race -p -vv --focus ".*GitLab" ./...
|
TEST_GITLAB_EXTERNAL=1 TOKEN_TYPE="PAT" $(GINKGO) --race -p -vv -coverprofile=e2e-coverage.out --keep-separate-coverprofiles --focus ".*GitLab" ./...
|
||||||
|
|
||||||
e2e-attestor: ## Runs e2e tests for scorecard-attestor
|
e2e-attestor: ## Runs e2e tests for scorecard-attestor
|
||||||
cd attestor/e2e; go test -covermode=atomic -coverprofile=e2e-coverage.out; cd ../..
|
cd attestor/e2e; go test -covermode=atomic -coverprofile=e2e-coverage.out; cd ../..
|
||||||
|
Loading…
Reference in New Issue
Block a user