Skip to content

Commit f42a4cc

Browse files
authored
Fix typo in Java guide for running tests (#21816)
## Description Fix typo when targeting the `test` stage - it was mentioning a non-exisiting `--target-test` parameter which could confuse new users: `unknown flag: --target-test`. It should be `--target test` or `--target=test`. I went with `--target test` since that's what is used in the rest of the guide. ## Related issues or tickets Introduced in #19390 ## Reviews <!-- Notes for reviewers here --> <!-- List applicable reviews (optionally @tag reviewers) --> - [ ] Technical review - [ ] Editorial review - [ ] Product review
1 parent 941957c commit f42a4cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/guides/java/run-tests.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ fail if the tests fail.
9595
Finally, you updated the deps stage to be based on the base stage and removed
9696
the instructions that are now in the base stage.
9797

98-
Run the following command to build a new image using the test stage as the target and view the test results. Include `--progress=plain` to view the build output, `--no-cache` to ensure the tests always run, and `--target-test` to target the test stage.
98+
Run the following command to build a new image using the test stage as the target and view the test results. Include `--progress=plain` to view the build output, `--no-cache` to ensure the tests always run, and `--target test` to target the test stage.
9999

100100
Now, build your image and run your tests. You'll run the `docker build` command and add the `--target test` flag so that you specifically run the test build stage.
101101

0 commit comments

Comments
 (0)