Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WOR-1544] #major Populate MDC for flight and its steps #125

Merged
merged 10 commits into from
Mar 4, 2024
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
distribution: 'temurin'
cache: 'gradle'
- name: Run tests
run: ./gradlew test
run: ./gradlew test --scan
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this do?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This generates a Gradle build scan as part of test output, which makes debugging tests a lot easier. Example from the most recent unit test run:

Publishing build scan...
https://gradle.com/s/gu4jckjm4mqzq


# TODO: Work with AppSec to get Sonar scans setup for this repo
# Run the Sonar scan after `gradle test` to include code coverage data in its report.
Expand Down
8 changes: 8 additions & 0 deletions buildSrc/src/main/groovy/stairway.java-conventions.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,11 @@ test {
includeTags 'unit'
}
}

// for scans
if (hasProperty("buildScan")) {
buildScan {
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
}
}
Loading