Integrating Java
Gradle
Add the plugin to your build.gradle file:
plugins {
...
id "io.bluecave.plugin" version "0.1.1"
}
If using Kotlin:
plugins {
...
id("io.bluecave.plugin") version "0.1.1"
}
You can now use the task bluecaveReport to analyze and report coverage to your Blue Cave project:
export BLUECAVE_TOKEN="<your project token>" # Please keep this a secret!
# The following is only required if running outside of GitHub Actions:
# export BLUECAVE_EXTRA_OPTS="-b <branch name, such as main> -c <commit hash to attribute this analysis to>"
# See https://docs.bluecave.io/ci/ for more information.
./gradlew bluecaveReport
Maven
Add the plugin to your pom.xml:
<build>
<plugins>
<plugin>
<groupId>io.bluecave</groupId>
<artifactId>bluecave-maven-plugin</artifactId>
<version>0.1.0</version>
</plugin>
</plugins>
</build>
You can now use bluecave:report after you run your tests to analyze and report coverage to your Blue Cave project:
export BLUECAVE_TOKEN="<your project token>" # Please keep this a secret!
# The following is only required if running outside of GitHub Actions:
# export BLUECAVE_EXTRA_OPTS="-b <branch name, such as main> -c <commit hash to attribute this analysis to>"
# See https://docs.bluecave.io/ci/ for more information.
./mvnw test
./mvnw bluecave:report
Bazel
Coming soon!