Skip to content

Commit 12364b9

Browse files
committed
Makefile: switch test/unit to test-unit
1 parent 070d931 commit 12364b9

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ jobs:
152152
# Currently, prow/api-ci tests all PRs that target master; use travis for post merge testing and non-master PRs
153153
if: type != pull_request OR branch != master
154154
<<: *dep_before_install
155-
script: make test/sanity test/unit test/markdown
155+
script: make test/sanity test-unit test/markdown
156156
after_success: echo 'Tests Passed'
157157
after_failure: echo 'Failure in unit, sanity, or markdown test'
158158

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,25 +104,25 @@ build/%.asc:
104104
}
105105

106106
# Static tests.
107-
.PHONY: test test/markdown test/sanity test/unit
107+
.PHONY: test test/markdown test/sanity test-unit
108108

109-
test: test/unit ## Run the tests
109+
test: test-unit ## Run the tests
110110

111111
test/markdown:
112112
./hack/ci/marker --root=doc
113113

114114
test/sanity: tidy
115115
./hack/tests/sanity-check.sh
116116

117-
test/unit: ## Run the unit tests
117+
test-unit: ## Run the unit tests
118118
$(Q)go test -count=1 -short ./cmd/...
119119
$(Q)go test -count=1 -short ./pkg/...
120120
$(Q)go test -count=1 -short ./internal/...
121121

122122
# CI tests.
123123
.PHONY: test/ci
124124

125-
test/ci: test/markdown test/sanity test/unit install test/subcommand test/e2e ## Run the CI test suite
125+
test/ci: test/markdown test/sanity test-unit install test/subcommand test/e2e ## Run the CI test suite
126126

127127
# Subcommand tests.
128128
.PHONY: test/subcommand test/subcommand/test-local test/subcommand/scorecard test/subcommand/olm-install

doc/dev/testing/running-the-tests.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ $ export KUBECONFIG="$(kind get kubeconfig-path --name="kind")"
5353

5454
All the tests are run through the [`Makefile`][makefile]. This is a brief description of all makefile test instructions:
5555

56-
- `test` - Runs the unit tests (`test/unit`).
56+
- `test` - Runs the unit tests (`test-unit`).
5757
- `test/ci` - Runs markdown, sanity, and unit tests, installs the SDK binary, and runs the SDK subcommand and all E2E tests.
5858
- `test/sanity` - Runs sanity checks.
59-
- `test/unit` - Runs unit tests.
59+
- `test-unit` - Runs unit tests.
6060
- `test/subcommand` - Runs subcommand tests.
6161
- `test/e2e` - Runs all E2E tests (`test/e2e/go`, `test/e2e/ansible`, `test/e2e/ansible-molecule`, and `e2e/helm`).
6262
- `test/e2e/go` - Runs the go E2E test.

0 commit comments

Comments
 (0)