docs: API package tests need a binary with your changes (#13029)
Add a note to the contributing guide pointing out that if you're writing `api` package tests, you need to build a binary with any of your changes.
This commit is contained in:
parent
703a7954f4
commit
f4703ab8a3
|
@ -21,4 +21,11 @@ Each unit test should meet a few criteria:
|
|||
|
||||
- Log control
|
||||
- Logging must go through the testing.T (use helper/testlog.HCLogger)
|
||||
- Avoid excessive logging in test cases - prefer failure messages
|
||||
- Avoid excessive logging in test cases - prefer failure messages
|
||||
|
||||
## API tests
|
||||
|
||||
Testing in the `api` package requires an already-built Nomad
|
||||
binary. If you're writing `api` tests, you'll need to build a Nomad
|
||||
binary (ex. with `make dev`) that includes any changes your API
|
||||
exercises.
|
||||
|
|
Loading…
Reference in New Issue