| name | testing-strategy |
| description | Testing guidelines and strategies for the Hibiki DAW workspace, including writing failing tests first to reproduce bugs, C++ unit/integration testing with Google Test, Java UI/integration testing with JUnit, and running tests via Bazel. |
| version | 1.0.0 |
| tags | ["testing","gtest","junit","bazel","development-standards"] |
Testing Strategy and Guidelines
Use this skill when you need to write, run, or debug tests in this codebase, or when implementing bug fixes or new features that require test coverage.
1. Test-Driven Bug Fixing ("Test First")
Always write a failing regression test before applying a bug fix.
- Identify the bug report or symptom description.
- Revert any local changes related to the fix so you are on the buggy version of the codebase.
- Write a test case (C++ or Java) that triggers the bug and asserts the correct (expected) behavior.
- Run the test and verify that it compiles and fails on the buggy codebase.
- Apply your fix.
- Verify that the test now passes successfully.
- Run all repository tests (
bazel test //... -c opt) to ensure no regressions are introduced.
2. C++ Testing (Engine / Backend)
3. Java Testing (GUI / Frontend)