@philwo can you take a look at this? I would like to take this issue up..  @philwo, @iirina any progress on this yet? @aljabrr I don't think anyone of us is working on it. Please feel free to send a patch via Gerrit. :)

The help string for that option is here:

https://github.com/bazelbuild/bazel/blob/94fbad5b230ae0c02a88100f1978d40d17d57b71/src/main/java/com/google/devtools/build/lib/bazel/rules/BazelRulesModule.java#L51

It is used to automatically build the documentation on the website, so just changing that string to a better explanation should be enough.
Not only for tests, I would change this to:

'standalone' means run all of them locally without any kind of sandboxing This is also wrong by now, it should read:

'sandboxed' means to run them in a sandboxed environment with limited privileges (details depend on platform support) Thanks for the review. Updated. Thanks for the review. Updated
Document --spawn_strategy=standalone for test
### Description of the problem / feature request / question:

`--spawn_strategy=standalone` actually disables sandboxing for tests. This is IMO not clear since the option  is documented under _BuildOptions_. Make it clear that it also applies for testing.

src/main/java/com/google/devtools/build/lib/bazel/rules/BazelStrategyModule.java
src/main/java/com/google/devtools/build/lib/bazel/rules/BazelStrategyModule.java
diff --git a/src/main/java/com/google/devtools/build/lib/bazel/rules/BazelStrategyModule.java b/src/main/java/com/google/devtools/build/lib/bazel/rules/BazelStrategyModule.java
index 512b5c0f3b1c8f..cc72ec77ed19db 100644
--- a/src/main/java/com/google/devtools/build/lib/bazel/rules/BazelStrategyModule.java
+++ b/src/main/java/com/google/devtools/build/lib/bazel/rules/BazelStrategyModule.java
@@ -43,8 +43,8 @@ public static class BazelExecutionOptions extends OptionsBase {
       effectTags = {OptionEffectTag.UNKNOWN},
       help =
           "Specify how spawn actions are executed by default."
-              + "'standalone' means run all of them locally."
-              + "'sandboxed' means run them in namespaces based sandbox (available only on Linux)"
+              + "'standalone' means run all of them locally without any kind of sandboxing."
+              + "'sandboxed' means to run them in a sandboxed environment with limited privileges (details depend on platform support)"
     )
     public String spawnStrategy;
 
