--- title: Hiero Brain ---

This is for the Hiero open source distributed public ledger project.

common tasks

Run all the code coverage tests.

shell
./gradlew testCodeCoverageReport

Load the code coverage reports into the browser

shell
npx http-server gradle/aggregation/build/reports/jacoco/testCodeCoverageReport/html
# or
open gradle/aggregation/build/reports/jacoco/testCodeCoverageReport/html/index.html

Run the quality gate to do any necessary reformatting

shell
./gradlew qualityGate

If you have trouble with CI failing but your local build isn't, try updating from main and then run a clean build locally with:

shell
 ./gradlew clean --no-daemon --no-build-cache --no-configuration-cache
 ./gradlew checkAllModuleInfo --no-daemon --no-build-cache --no-configuration-cache 

Before committing make sure GPG signing is set up commit sign-off is set up `./gradlew testCodeCoverageReport` passes ./gradlew qualityGate passes

If GPG signing was working and stops suddenly, it's probably because the ssh-agent has stopped. Run ssh-agent to restart it.