mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user