Update CONTRIBUTING.md

Signed-off-by: 蔡秀吉 <84045975+thc1006@users.noreply.github.com>
pull/31068/head
蔡秀吉 2 months ago committed by GitHub
parent 896294e120
commit 429097ba5a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -228,6 +228,29 @@ guide](https://helm.sh/docs/community/developers/) to get started.
Coding conventions and standards are explained in the [official developer Coding conventions and standards are explained in the [official developer
docs](https://helm.sh/docs/developers/). docs](https://helm.sh/docs/developers/).
### Running tests
To run the test suite, use the `make test` command. This will run all the unit tests.
By default, the tests are run in a randomized order and each test is run 3 times. This is to help
detect flaky tests. If you want to run the tests in a specific order, you can use the `-shuffle=off`
flag. If you want to run the tests a different number of times, you can use the `-count=n` flag,
where `n` is the number of times you want to run the tests.
For example, to run the tests in order and only once, you can use the following command:
```bash
make test TESTARGS="-shuffle=off -count=1"
```
If a test fails, the seed that was used to randomize the tests will be printed. You can use this
seed to reproduce the failure. For example, if the seed was `12345`, you can use the following
command to reproduce the failure:
```bash
make test TESTARGS="-shuffle=on -seed=12345"
```
## Pull Requests ## Pull Requests
Like any good open source project, we use Pull Requests (PRs) to track code changes. Like any good open source project, we use Pull Requests (PRs) to track code changes.

Loading…
Cancel
Save