@@ -42,7 +42,7 @@ Get operational from the repo root in three steps:
4242 * Debug-friendly (recommended): ` ./v -g -keepc -o ./vnew cmd/v `
43433 . Use ` ./vnew ` for everything:
4444 * Run a file: ` ./vnew run examples/hello_world.v `
45- * Run tests: ` ./vnew test vlib/v/ `
45+ * Run tests: ` ./vnew -silent test vlib/v/ `
4646 * Format: ` ./vnew fmt -w path/to/file.v `
4747
4848Then read Top Rules and Agent Rules before making changes.
@@ -184,7 +184,7 @@ If you read only one section for tests, **read Testing**.
184184| Change area | Rebuild? | Minimum tests to run |
185185| --- | --- | --- |
186186| Docs only (` .md ` ) | No | ` check-md file.md ` |
187- | Compiler (` vlib/v/ ` , ` cmd/v/ ` ) | Yes | ` vlib/v/compiler_errors_test.v ` ; ` test vlib/v/ ` |
187+ | Compiler (` vlib/v/ ` , ` cmd/v/ ` ) | Yes | ` -silent vlib/v/compiler_errors_test.v` ; ` test vlib/v/ ` |
188188| Core modules (builtin/strings/os/strconv/time) | Yes | Smallest relevant tests |
189189| Parser-only (` vlib/v/parser/ ` ) | Yes | ` test vlib/v/parser/ ` |
190190| Checker-only (` vlib/v/checker/ ` ) | Yes | ` test vlib/v/checker/ ` |
@@ -462,7 +462,7 @@ Example: `$if field.typ is $int { ... }`
462462### Comptime changes and testing
463463Comptime logic lives in ` vlib/v/comptime/ ` and is exercised by the
464464checker, parser, and cgen stages. Changes here require a rebuild of
465- ` ./vnew ` and should be tested with ` ./vnew test vlib/v/tests/ ` plus
465+ ` ./vnew ` and should be tested with ` ./vnew -silent test vlib/v/tests/ ` plus
466466any comptime-specific tests. See the decision table and Testing.
467467
468468## Run Programs
@@ -476,11 +476,11 @@ any comptime-specific tests. See the decision table and Testing.
476476Run:
477477* File (shows test output): ` ./vnew path/to/file_test.v ` .
478478* File (test runner report only): ` ./vnew test path/to/file_test.v ` .
479- * Dir: ` ./vnew test path/to/dir/ ` .
479+ * Dir: ` ./vnew -silent test path/to/dir/ ` .
480480* Dir with statistics/metrics: ` ./vnew -stats test path/to/dir/ ` .
481- * Compiler: ` ./vnew vlib/v/compiler_errors_test.v ` .
481+ * Compiler: ` ./vnew -silent vlib/v/compiler_errors_test.v ` .
482482* Fix outputs (only when intended):
483- ` VAUTOFIX=1 ./vnew vlib/v/compiler_errors_test.v ` .
483+ ` VAUTOFIX=1 ./vnew -silent vlib/v/compiler_errors_test.v ` .
484484* All: ` ./vnew test-all ` .
485485 Ask before running ` ./vnew test-all ` unless explicitly requested.
486486
@@ -494,33 +494,33 @@ When:
494494* Run all tests that apply. Start with the smallest targeted tests;
495495 add slow tests as needed. Order does not matter.
496496* Compiler changes (` vlib/v/ ` or ` cmd/v/ ` ):
497- Run ` ./vnew vlib/v/compiler_errors_test.v ` ,
498- ` ./vnew test vlib/v/ ` .
497+ Run ` ./vnew -silent vlib/v/compiler_errors_test.v ` ,
498+ ` ./vnew -silent test vlib/v/ ` .
499499* Parser-only changes (` vlib/v/parser/ ` ):
500- Run ` ./vnew test vlib/v/parser/ ` .
500+ Run ` ./vnew -silent test vlib/v/parser/ ` .
501501* Checker-only changes (` vlib/v/checker ` ):
502- Run ` ./vnew test vlib/v/checker/tests / ` .
502+ Run ` ./vnew -silent test vlib/v/checker/ ` .
503503* vlib changes: Run nearest ` *_test.v ` or
504- ` ./vnew test vlib/path/ ` .
504+ ` ./vnew -silent test vlib/path/ ` .
505505* Tool changes (` cmd/tools/ ` ): Run tool-specific tests. If none exist,
506506 run the smallest relevant ` *_test.v ` that exercises the tool.
507507 Note: ` cmd/v/ ` is compiler scope, not tools.
508- Examples: ` cmd/tools/vfmt ` -> ` vlib/v/fmt/fmt_test.v ` ,
509- ` cmd/tools/vdoc ` -> ` vlib/v/doc/doc_test .v` .
508+ Examples: ` cmd/tools/vfmt ` -> ` vlib/v/fmt/fmt_test.v ` .
509+ ` cmd/tools/vdoc ` -> ` cmd/tools/vdoc/vdoc_test .v` .
510510* Diagnostic/output changes:
511- Run ` ./vnew vlib/v/slow_tests/inout/compiler_test.v ` .
512- * C codegen changes: Run ` ./vnew vlib/v/gen/c/coutput_test.v ` .
511+ Run ` ./vnew -silent vlib/v/slow_tests/inout/compiler_test.v ` .
512+ * C codegen changes: Run ` ./vnew -silent vlib/v/gen/c/coutput_test.v ` .
513513 Consider a stricter validation pass:
514- ` ./vnew -cstrict -cc clang test vlib/v/ ` .
515- * REPL changes: Run ` ./vnew vlib/v/slow_tests/repl/repl_test.v ` .
516- * Broad refactors: Run ` ./vnew test-all ` .
514+ ` ./vnew -cstrict -cc clang -silent test vlib/v/ ` .
515+ * REPL changes: Run ` ./vnew -silent vlib/v/slow_tests/repl/repl_test.v ` .
516+ * Broad refactors: Run ` ./vnew -silent test-all ` .
517517* Backend-specific changes: run the smallest relevant tests for the
518518 affected backend. JS/native/WASM backends are incomplete, so avoid
519519 broad ` -b <backend> test vlib/ ` runs. Prefer targeted ` *_test.v `
520520 files or small test dirs with ` -b js|native|wasm ` .
521521
522522If time-constrained, prioritize
523- ` ./vnew vlib/v/compiler_errors_test.v ` and the smallest targeted tests.
523+ ` ./vnew -silent vlib/v/compiler_errors_test.v ` and the smallest targeted tests.
524524Run ` vlib/v/slow_tests/inout/compiler_test.v `
525525and ` vlib/v/gen/c/coutput_test.v ` when output or codegen changes are
526526likely.
@@ -538,9 +538,9 @@ Types:
538538* Standard: ` *_test.v ` files with ` test_ ` functions.
539539* Output: ` .vv ` source + ` .out ` expected output in
540540 ` vlib/v/slow_tests/inout/ ` .
541- Example: ` ./vnew vlib/v/slow_tests/inout/compiler_test.v ` .
541+ Example: ` ./vnew -silent vlib/v/slow_tests/inout/compiler_test.v ` .
542542* ` vlib/v/tests/** ` may use ` .run.out ` expectations; run with
543- ` ./vnew test vlib/v/tests ` .
543+ ` ./vnew -silent test vlib/v/tests ` .
544544
545545Docs-only guidance: see Reporting.
546546If time-boxed, run at least the smallest relevant test and note
@@ -551,8 +551,7 @@ skipped coverage in the summary.
551551 Use only when a behavior change is intended.
552552* ` VTEST_ONLY=glob_pattern ` - Run only tests matching pattern.
553553* ` VTEST_HIDE_OK=1 ` - Hide successful tests, show only failures.
554- * ` ./vnew -progress test path/to/dir/ ` - Show only the currently
555- running test.
554+ * ` ./vnew -silent test path/to/dir/ ` - Show only failed tests (if any), and a summary report.
556555* ` -cc tcc ` can speed test builds when TCC is available.
557556* Output expectations: update ` .out ` files only when behavior changes
558557 are intended; note the rationale in the summary.
0 commit comments