gotest.tools/gotestsum@v1.11.0/cmd/testdata/gotestsum-help-text (about)

     1  Usage:
     2      gotestsum [flags] [--] [go test flags]
     3      gotestsum [command]
     4  
     5  See https://pkg.go.dev/gotest.tools/gotestsum#section-readme for detailed documentation.
     6  
     7  Flags:
     8        --debug                                       enabled debug logging
     9    -f, --format string                               print format of test input (default "pkgname")
    10        --format-hide-empty-pkg                       do not print empty packages in compact formats
    11        --format-hivis                                use high visibility characters in some formats
    12        --hide-summary summary                        hide sections of the summary: skipped,failed,errors,output (default none)
    13        --jsonfile string                             write all TestEvents to file
    14        --jsonfile-timing-events string               write only the pass, skip, and fail TestEvents to the file
    15        --junitfile string                            write a JUnit XML file
    16        --junitfile-hide-empty-pkg                    omit packages with no tests from the junit.xml file
    17        --junitfile-project-name string               name of the project used in the junit.xml file
    18        --junitfile-testcase-classname field-format   format the testcase classname field as: full, relative, short (default full)
    19        --junitfile-testsuite-name field-format       format the testsuite name field as: full, relative, short (default full)
    20        --max-fails int                               end the test run after this number of failures
    21        --no-color                                    disable color output
    22        --packages list                               space separated list of package to test
    23        --post-run-command command                    command to run after the tests have completed
    24        --raw-command                                 don't prepend 'go test -json' to the 'go test' command
    25        --rerun-fails int[=2]                         rerun failed tests until they all pass, or attempts exceeds maximum. Defaults to max 2 reruns when enabled
    26        --rerun-fails-max-failures int                do not rerun any tests if the initial run has more than this number of failures (default 10)
    27        --rerun-fails-report string                   write a report to the file, of the tests that were rerun
    28        --rerun-fails-run-root-test                   rerun the entire root testcase when any of its subtests fail, instead of only the failed subtest
    29        --version                                     show version and exit
    30        --watch                                       watch go files, and run tests when a file is modified
    31        --watch-chdir                                 in watch mode change the working directory to the directory with the modified file before running tests
    32  
    33  Formats:
    34      dots                     print a character for each test
    35      dots-v2                  experimental dots format, one package per line
    36      pkgname                  print a line for each package
    37      pkgname-and-test-fails   print a line for each package and failed test output
    38      testname                 print a line for each test and package
    39      testdox                  print a sentence for each test using gotestdox
    40      github-actions           testname format with github actions log grouping
    41      standard-quiet           standard go test format
    42      standard-verbose         standard go test -v format
    43  
    44  Commands:
    45      gotestsum tool slowest   find or skip the slowest tests
    46      gotestsum help           print this help next