Skip to content

Latest commit

 

History

History
43 lines (24 loc) · 1.96 KB

File metadata and controls

43 lines (24 loc) · 1.96 KB

Development guide

Prerequisites

Ensure bazelisk is installed before running any tests or development scripts.

Testing

The Bazel executable version can be specified by either setting the DEVELOPMENT_BAZEL_VERSION environment variable when running the test script, or by placing a .bazelversion file at the workspace root.

Unit tests

To run unit tests, execute development/cli/execute_unit_tests.bash. This script runs bazelisk test and bazelisk build commands.

Note that some test targets are marked with tags = ["manual"] and are intended to individually verify that bazel build fails as expected.

Integration tests

To run the integration tests, execute development/cli/execute_integration_tests.bash. This script executes bazelisk test in each integration test directory.

If one or more directories are passed as arguments, only those directories are tested. If no arguments are provided, all directories under tests/integration are tested.

Example validation

To validate examples, run development/cli/validate_example.bash. This script runs bazelisk test inside the examples directory.

Code formatting and linting

For formatting and linting, execute development/cli/style_check.bash.

This script checks for style consistency across the codebase.

Release process

Only an admin user can release a new version. To initiate a release, the admin should push a tag in the format X.Y.Z (e.g., 1.0.0). This will trigger a CI job that:

After the BCR PR is approved and merged, the rules_build_error module becomes available as a Bazel module.