Set Git Commit Hash
How to set Git Commit Hash?
Hypertest provides a way to set the Git commit hash for your application. This enables accurate tracking of coverage across different builds which will helps in comparing coverage metrics across multiple versions.
You can directly set the Git commit hash by adding the below code to your index.js
:
The above call to set git commitHash should be done before starting the coverage measurement using htSdk.measureContinuousCoverage()
.
Last updated