Skip to content

Latest commit

 

History

History
7 lines (7 loc) · 708 Bytes

TESTING.md

File metadata and controls

7 lines (7 loc) · 708 Bytes

Testing

  1. To execute tests just run make test, do not set any environment variables for them, one of tests is to check default environment.
  2. To check all sources using multiple go tools (like fmt, lint, imports, vet, goconst, usedexports), run make check.
  3. To check Travis CI payloads use PG_PASS=pwd GET=1 ./devel/webhook.sh and then ./devel/test_webhook.sh.
  4. To check annotations run: PG_PASS=pwd PG_DB=dbtest GHA2DB_PROJECT=kubernetes GHA2DB_LOCAL=1 go test series_test.go -run TestProcessAnnotations.
  5. Continuous deployment instructions are here.
  6. To testDB/metrics: PG_DB=dbtest PG_PASS=... make dbtest.