You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds a simple Makefile with the most commonly used options
This will make it easier for people new to the project to figure
out how to contribute or test changes locally.
Signed-off-by: John Schnake <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+18
Original file line number
Diff line number
Diff line change
@@ -197,6 +197,24 @@ will be. Feel free to make comments on Github or start conversations in Slack.
197
197
Thanks for taking the time to join our community and start contributing! We welcome pull requests. Feel free to dig
198
198
through the [issues][issue] and jump in.
199
199
200
+
The most common build/test functions are called via the Makefile:
201
+
202
+
```
203
+
// Build the binary
204
+
$ make build
205
+
206
+
// Run local unit tests
207
+
$ make test
208
+
```
209
+
210
+
If you make changes which change output, you may fail tests which utilize the golden file testing pattern (e.g. correct data is stored in external files), update them by running:
211
+
```
212
+
$ make golden
213
+
```
214
+
215
+
In most cases, running integration tests is more simply done in CI when you open a pull request.
216
+
You can dig into scripts/build_funcs.sh and our .github/workflows/ci-test.yaml for exact details of existing test flows.
217
+
200
218
### Before you start
201
219
202
220
* Please familiarize yourself with the [Code of Conduct][coc] before contributing.
Copy file name to clipboardExpand all lines: site/content/docs/main/_index.md
+19-8
Original file line number
Diff line number
Diff line change
@@ -52,10 +52,6 @@ more about the new release cycles in [our blog][decoupling-sonobuoy-k8s].
52
52
53
53
Move the extracted `sonobuoy` executable to somewhere on your `PATH`.
54
54
55
-
## CLI Documentation
56
-
57
-
The full documentation for the CLI can be found [here][clidocs].
58
-
59
55
## Getting Started
60
56
61
57
To launch conformance tests (ensuring [CNCF][cncf] conformance) and wait until they are finished run:
@@ -207,6 +203,24 @@ will be. Feel free to make comments on Github or start conversations in Slack.
207
203
Thanks for taking the time to join our community and start contributing! We welcome pull requests. Feel free to dig
208
204
through the [issues][issue] and jump in.
209
205
206
+
The most common build/test functions are called via the Makefile:
207
+
208
+
```
209
+
// Build the binary
210
+
$ make build
211
+
212
+
// Run local unit tests
213
+
$ make test
214
+
```
215
+
216
+
If you make changes which change output, you may fail tests which utilize the golden file testing pattern (e.g. correct data is stored in external files), update them by running:
217
+
```
218
+
$ make golden
219
+
```
220
+
221
+
In most cases, running integration tests is more simply done in CI when you open a pull request.
222
+
You can dig into scripts/build_funcs.sh and our .github/workflows/ci-test.yaml for exact details of existing test flows.
223
+
210
224
### Before you start
211
225
212
226
* Please familiarize yourself with the [Code of Conduct][coc] before contributing.
@@ -269,7 +283,4 @@ See [the list of releases][releases] to find out about feature changes.
0 commit comments