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

Update java.md #26255

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions content/en/tests/setup/java.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ further_reading:
---

{{< site-region region="gov" >}}
<div class="alert alert-warning">CI Visibility is not available in the selected site ({{< region-param key="dd_site_name" >}}) at this time.</div>
<div class="alert alert-warning">Test Optimization is not available in the selected site ({{< region-param key="dd_site_name" >}}) at this time.</div>
{{< /site-region >}}

## Compatibility
Expand Down Expand Up @@ -108,7 +108,7 @@ You can run the `java -jar $DD_TRACER_FOLDER/dd-java-agent.jar` command to check
Set the following environment variables to configure the tracer:

`DD_CIVISIBILITY_ENABLED=true` (Required)
: Enables the CI Visibility product.
: Enables the Test Optimization product.

`DD_ENV` (Required)
: Environment where the tests are being run (for example: `local` when running tests on a developer workstation or `ci` when running them on a CI provider).
Expand All @@ -133,7 +133,7 @@ Run your tests using the `org.gradle.jvmargs` system property to specify the pat

When specifying tracer arguments, include the following:

* Enable CI visibility by setting the `dd.civisibility.enabled` property to `true`.
* Enable Test Optimization by setting the `dd.civisibility.enabled` property to `true`.
* Define the environment where the tests are being run using the `dd.env` property (for example: `local` when running tests on a developer workstation or `ci` when running them on a CI provider).
* Define the name of the service or library being tested in the `dd.service` property.

Expand Down Expand Up @@ -406,7 +406,7 @@ static Stream<Arguments> randomArguments() {

## Troubleshooting

### The tests are not appearing in Datadog after enabling CI Visibility in the tracer
### The tests are not appearing in Datadog after enabling Test Optimization in the tracer

Verify that the tracer is injected into your build process by examining your build's logs.
If the injection is successful, you can see a line containing `DATADOG TRACER CONFIGURATION`.
Expand All @@ -415,7 +415,7 @@ A common mistake is to set the variables in a build step and run the tests in an

Ensure that you are using the latest version of the tracer.

Verify that your build system and testing framework are supported by CI Visibility. See the list of [supported build systems and test frameworks](#compatibility).
Verify that your build system and testing framework are supported by Test Optimization. See the list of [supported build systems and test frameworks](#compatibility).

Ensure that the `dd.civisibility.enabled` property (or `DD_CIVISIBILITY_ENABLED` environment variable) is set to `true` in the tracer arguments.

Expand All @@ -424,7 +424,7 @@ Check the build output for any errors that indicate tracer misconfiguration, suc

### Tests or source code compilation fails when building a project with the tracer attached

By default, CI Visibility runs Java code compilation with a compiler plugin attached.
By default, Test Optimization runs Java code compilation with a compiler plugin attached.

The plugin is optional, as it only serves to reduce the performance overhead.

Expand Down
Loading