Skip to content

Commit

Permalink
Edit explanation and command example
Browse files Browse the repository at this point in the history
  • Loading branch information
joepeeples committed Feb 14, 2025
1 parent d87c92f commit c038875
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions content/en/tests/setup/dotnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -389,11 +389,11 @@ The test session name needs to be unique within a repository to help you disting

#### When to use `DD_TEST_SESSION_NAME`

There's a set of parameters that the product checks to establish correspondence between test sessions. The test command used to execute the tests is one of them. If the test command contains a string that changes for every execution, such as a temporary folder, Datadog considers the sessions to be unrelated to each other. Some examples of unstable test commands are:
There's a set of parameters that Datadog checks to establish correspondence between test sessions. The test command used to execute the tests is one of them. If the test command contains a string that changes for every execution, such as a temporary folder, Datadog considers the sessions to be unrelated to each other. For example:

- `DD_TEST_SESSION_NAME=integration-tests dotnet test --temp-dir=/var/folders/t1/rs2htfh55mz9px2j4prmpg_c0000gq/T`
- `dotnet test --temp-dir=/var/folders/t1/rs2htfh55mz9px2j4prmpg_c0000gq/T`

Datadog recommends using `DD_TEST_SESSION_NAME` if your test commands varies between executions.
Datadog recommends using `DD_TEST_SESSION_NAME` if your test commands vary between executions.

## Further reading

Expand Down
4 changes: 2 additions & 2 deletions content/en/tests/setup/java.md
Original file line number Diff line number Diff line change
Expand Up @@ -505,11 +505,11 @@ The test session name needs to be unique within a repository to help you disting

#### When to use `DD_TEST_SESSION_NAME`

There's a set of parameters that the product checks to establish correspondence between test sessions. The test command used to execute the tests is one of them. If the test command contains a string that changes for every execution, such as a temporary folder, Datadog considers the sessions to be unrelated to each other. Some examples of unstable test commands are:
There's a set of parameters that Datadog checks to establish correspondence between test sessions. The test command used to execute the tests is one of them. If the test command contains a string that changes for every execution, such as a temporary folder, Datadog considers the sessions to be unrelated to each other. For example:

- `mvn test --temp-dir=/var/folders/t1/rs2htfh55mz9px2j4prmpg_c0000gq/T`

Datadog recommends using `DD_TEST_SESSION_NAME` if your test commands varies between executions.
Datadog recommends using `DD_TEST_SESSION_NAME` if your test commands vary between executions.

## Troubleshooting

Expand Down
4 changes: 2 additions & 2 deletions content/en/tests/setup/javascript.md
Original file line number Diff line number Diff line change
Expand Up @@ -821,12 +821,12 @@ The test session name should be unique within a repository to help you distingui

#### When to use `DD_TEST_SESSION_NAME`

There's a set of parameters that the product checks to establish correspondence between test sessions. The test command used to execute the tests is one of them. If the test command contains a string that changes for every execution, such as a temporary folder, Datadog considers the sessions to be unrelated to each other. Some examples of unstable test commands are:
There's a set of parameters that Datadog checks to establish correspondence between test sessions. The test command used to execute the tests is one of them. If the test command contains a string that changes for every execution, such as a temporary folder, Datadog considers the sessions to be unrelated to each other. For example:

- `yarn test --temp-dir=/var/folders/t1/rs2htfh55mz9px2j4prmpg_c0000gq/T`
- `pnpm vitest --temp-dir=/var/folders/t1/rs2htfh55mz9px2j4prmpg_c0000gq/T`

Datadog recommends using `DD_TEST_SESSION_NAME` if your test commands varies between executions.
Datadog recommends using `DD_TEST_SESSION_NAME` if your test commands vary between executions.

## Further reading

Expand Down
4 changes: 2 additions & 2 deletions content/en/tests/setup/python.md
Original file line number Diff line number Diff line change
Expand Up @@ -438,11 +438,11 @@ The test session name needs to be unique within a repository to help you disting

#### When to use `DD_TEST_SESSION_NAME`

There's a set of parameters that the product checks to establish correspondence between test sessions. The test command used to execute the tests is one of them. If the test command contains a string that changes for every execution, such as a temporary folder, Datadog considers the sessions to be unrelated to each other. Some examples of unstable test commands are:
There's a set of parameters that Datadog checks to establish correspondence between test sessions. The test command used to execute the tests is one of them. If the test command contains a string that changes for every execution, such as a temporary folder, Datadog considers the sessions to be unrelated to each other. For example:

- `pytest --temp-dir=/var/folders/t1/rs2htfh55mz9px2j4prmpg_c0000gq/T`

Datadog recommends using `DD_TEST_SESSION_NAME` if your test commands varies between executions.
Datadog recommends using `DD_TEST_SESSION_NAME` if your test commands vary between executions.

## Known limitations

Expand Down
4 changes: 2 additions & 2 deletions content/en/tests/setup/ruby.md
Original file line number Diff line number Diff line change
Expand Up @@ -475,12 +475,12 @@ The test session name needs to be unique within a repository to help you disting

#### When to use `DD_TEST_SESSION_NAME`

There's a set of parameters that the product checks to establish correspondence between test sessions. The test command used to execute the tests is one of them. If the test command contains a string that changes for every execution, such as a temporary folder, Datadog considers the sessions to be unrelated to each other. Some examples of unstable test commands are:
There's a set of parameters that Datadog checks to establish correspondence between test sessions. The test command used to execute the tests is one of them. If the test command contains a string that changes for every execution, such as a temporary folder, Datadog considers the sessions to be unrelated to each other. For example:

- `yarn test --temp-dir=/var/folders/t1/rs2htfh55mz9px2j4prmpg_c0000gq/T`
- `pnpm vitest --temp-dir=/var/folders/t1/rs2htfh55mz9px2j4prmpg_c0000gq/T`

Datadog recommends using `DD_TEST_SESSION_NAME` if your test commands varies between executions.
Datadog recommends using `DD_TEST_SESSION_NAME` if your test commands vary between executions.

## Further reading

Expand Down
4 changes: 2 additions & 2 deletions content/en/tests/setup/swift.md
Original file line number Diff line number Diff line change
Expand Up @@ -648,11 +648,11 @@ The test session name needs to be unique within a repository to help you disting

#### When to use `DD_TEST_SESSION_NAME`

There's a set of parameters that the product checks to establish correspondence between test sessions. The test command used to execute the tests is one of them. If the test command contains a string that changes for every execution, such as a temporary folder, Datadog considers the sessions to be unrelated to each other. Some examples of unstable test commands are:
There's a set of parameters that Datadog checks to establish correspondence between test sessions. The test command used to execute the tests is one of them. If the test command contains a string that changes for every execution, such as a temporary folder, Datadog considers the sessions to be unrelated to each other. For example:

- `swift test --temp-dir=/var/folders/t1/rs2htfh55mz9px2j4prmpg_c0000gq/T`

Datadog recommends using `DD_TEST_SESSION_NAME` if your test commands varies between executions.
Datadog recommends using `DD_TEST_SESSION_NAME` if your test commands vary between executions.

## Further reading

Expand Down
2 changes: 1 addition & 1 deletion content/en/tests/troubleshooting/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ The best way to fix this is to make sure that the test parameters are the same b

## Session history, performance or code coverage tab only show a single execution

This is likely caused by an unstable test session fingerprint. There's a set of parameters that the product checks to establish correspondence between test sessions. The test command used to execute the tests is one of them. If the test command contains a string that changes for every execution, such as a temporary folder, Datadog considers the sessions to be unrelated to each other. Some examples of unstable test commands are:
This is likely caused by an unstable test session fingerprint. There's a set of parameters that Datadog checks to establish correspondence between test sessions. The test command used to execute the tests is one of them. If the test command contains a string that changes for every execution, such as a temporary folder, Datadog considers the sessions to be unrelated to each other. For example:

- `yarn test --temp-dir=/var/folders/t1/rs2htfh55mz9px2j4prmpg_c0000gq/T`
- `mvn test --temp-dir=/var/folders/t1/rs2htfh55mz9px2j4prmpg_c0000gq/T`
Expand Down

0 comments on commit c038875

Please sign in to comment.