Skip to content

Testing

Local checks

Common build/test entry points:

./gradlew build
./gradlew qualityCheck
./gradlew allTests

Android device tests:

./gradlew connectedCheck

Architecture report validation:

./gradlew architectureReport
./gradlew verifyArchitectureReport

Server smoke tests

PowerShell scripts under server/scripts/ exercise the actual Compose/server topology.

.\server\scripts\Test-SparrowNetwork.ps1 -Start -BuildImages

Two standalone Community Nodes plus Control Plane:

.\server\scripts\Test-StandaloneCommunityNodes.ps1 -BuildImages

The standalone smoke test starts a Control Plane and two Community Nodes, checks their health, that both register with their own identity, that they share no Docker network or volume, and that a node keeps its identity across a restart.

CI branch behavior

Normal feature work opens PRs into develop. .github/workflows/android-pr.yml validates those PRs and uploads its debug APK artifact. Existing server workflows also target the develop integration path.

Release packaging is separate and runs on v* tags; see Release process.

Test production behavior, not stale assumptions

A failing test is not by itself proof that production behavior is wrong. When architecture intentionally changes, update stale tests rather than modifying production solely to preserve obsolete expectations.