Skip to content

Latest commit

 

History

History
54 lines (38 loc) · 1.24 KB

File metadata and controls

54 lines (38 loc) · 1.24 KB

applyTo: "/BUILD*,/MODULE*,tests/,/_test.{cpp,cc,py},**/_test.rs"

Build & Test

Bazel is the primary build system.

Commands

# Build specific target
bazel build //src/gatewayd:gatewayd

# Run all tests
bazel test //...

# Run unit tests
bazel test //src/...

# Run integration tests
bazel test //tests/integration:integration

# Run performance benchmarks
bazel test //tests/benchmarks:all

Test Requirements

When adding new code, tests are required by default:

  • Unit tests next to the software element's source code
  • Use py_pytest rule for Python tests

pre-commit

pre-commit must pass, before considering the work done:

pre-commit run --all-files