Skip to content

Commit 94f0f38

Browse files
authored
Small fixes (contribution docu, integration tests) (#3684)
* use "command" constant for env setup tests * update branches in contribution guide * remove "units-full" goal in testing guide (is same as "units" now)
1 parent aa7bb5a commit 94f0f38

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

.github/CONTRIBUTING.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ After reaching out to the CLI team and the conclusion is to make a PR, please fo
3333
[Product Style Guide](https://github.com/cloudfoundry/cli/wiki/CLI-Product-Specific-Style-Guide),
3434
and [Internationalization Guide](https://github.com/cloudfoundry/cli/wiki/Internationalization-Guide).
3535
1. Fork the project repository.
36-
1. Create a feature branch from the earliest branch that's [appropriate for your change](#cli-versions) (e.g. `git checkout v8 && git checkout -b better_cli`) and make changes on this branch
36+
1. Create a feature branch from the earliest branch that's [appropriate for your change](#cli-versions) (e.g. for v9 `git checkout main && git checkout -b main_better_cli`) and make changes on this branch
3737
* Follow the other sections on this page to [set up your development environment](#development-environment-setup), [build `cf`](#building-the-cf-binary) and [run the tests](#testing).
3838
* Tests are required for any changes.
39-
1. Push to your fork (e.g. `git push origin better_cli`) and [submit a pull request](https://help.github.com/articles/creating-a-pull-request)
40-
1. The cf CLI team will merge your changes from the versioned branch (e.g. v8) to main for you after the PR is merged.
39+
1. Push to your fork (e.g. `git push origin main_better_cli`) and [submit a pull request](https://help.github.com/articles/creating-a-pull-request)
40+
1. The cf CLI team will merge your PR after review.
4141

4242
Note: All contributions must be sent using GitHub Pull Requests.
4343
We prefer a small, focused pull request with a clear message
@@ -97,12 +97,9 @@ how to cross compile binaries for other architectures.
9797
To run the unit tests:
9898
```bash
9999
cd cli
100-
make units-full # will run all unit tests
101-
make units # runs all non-cf directory unit tests
100+
make units
102101
```
103-
104-
**Note: `make units-full` is recommended over `make units` if you are unsure of
105-
how wide-reaching the intended changes are.**
102+
(For historic reasons, there are multiple synonyms in the `Makefile`.)
106103

107104
## Running the Integration tests
108105

integration/v7/isolated/bind_service_command_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ var _ = Describe("bind-service command", func() {
137137

138138
When("the environment is not setup correctly", func() {
139139
It("fails with the appropriate errors", func() {
140-
helpers.CheckEnvironmentTargetedCorrectly(true, true, ReadOnlyOrg, "bind-service", "app-name", "service-name")
140+
helpers.CheckEnvironmentTargetedCorrectly(true, true, ReadOnlyOrg, command, "app-name", "service-name")
141141
})
142142
})
143143

integration/v7/isolated/unbind_service_command_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ var _ = Describe("unbind-service command", func() {
7070

7171
When("the environment is not setup correctly", func() {
7272
It("fails with the appropriate errors", func() {
73-
helpers.CheckEnvironmentTargetedCorrectly(true, true, ReadOnlyOrg, "bind-service", "app-name", "service-name")
73+
helpers.CheckEnvironmentTargetedCorrectly(true, true, ReadOnlyOrg, command, "app-name", "service-name")
7474
})
7575
})
7676

0 commit comments

Comments
 (0)