summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorquantimnot <54247259+quantimnot@users.noreply.github.com>2022-05-23 00:12:34 -0400
committerGitHub <noreply@github.com>2022-05-23 06:12:34 +0200
commita8426fc7890f1bea1c507ddb2fe42662f7a574f8 (patch)
tree15f2edfa84529e613f0be349be34563a5c0199a9
parent63cca93ea9bcab3c1fea39ff3789fd3a656d2db2 (diff)
downloadNim-a8426fc7890f1bea1c507ddb2fe42662f7a574f8.tar.gz
Fix default testament target in docs and cli help (#19796)
Co-authored-by: quantimnot <quantimnot@users.noreply.github.com>
-rw-r--r--doc/testament.rst4
-rw-r--r--testament/testament.nim2
2 files changed, 3 insertions, 3 deletions
diff --git a/doc/testament.rst b/doc/testament.rst
index 5590cc6d7..427a7ff71 100644
--- a/doc/testament.rst
+++ b/doc/testament.rst
@@ -36,7 +36,7 @@ Options
                           (for debugging)
 --failing                 Only show failing/ignored tests
 --targets:"c cpp js objc"
-                          Run tests for specified targets (default: all)
+                          Run tests for specified targets (default: c)
 --nim:path                Use a particular nim executable (default: $PATH/nim)
 --directory:dir           Change to directory dir before reading the tests
                           or doing anything else.
@@ -164,7 +164,7 @@ Example "template" **to edit** and write a Testament unittest:
     # Timeout seconds to run the test. Fractional values are supported.
     timeout: 1.5
 
-    # Targets to run the test into (c, cpp, objc, js).
+    # Targets to run the test into (c, cpp, objc, js). Defaults to c.
     targets: "c js"
 
     # flags with which to run the test, delimited by `;`
diff --git a/testament/testament.nim b/testament/testament.nim
index a4329b982..d2b0e7fb4 100644
--- a/testament/testament.nim
+++ b/testament/testament.nim
@@ -54,7 +54,7 @@ Options:
   --verbose                 print commands (compiling and running tests)
   --simulate                see what tests would be run but don't run them (for debugging)
   --failing                 only show failing/ignored tests
-  --targets:"c cpp js objc" run tests for specified targets (default: all)
+  --targets:"c cpp js objc" run tests for specified targets (default: c)
   --nim:path                use a particular nim executable (default: $$PATH/nim)
   --directory:dir           Change to directory dir before reading the tests or doing anything else.
   --colors:on|off           Turn messages coloring on|off.