diff options
author | Damian Gryski <[email protected]> | 2023-03-31 12:59:14 -0700 |
---|---|---|
committer | Damian Gryski <[email protected]> | 2023-03-31 19:17:02 -0700 |
commit | 63aaa43072504ac3d201bc4b8c6af4ee3365aa69 (patch) | |
tree | 9c50a08fef71668c301e6b5c8300c5fdd4f28565 /main.go | |
parent | ee81c318846c4e8326536245b5d70b83b8727fcc (diff) | |
download | tinygo-63aaa43072504ac3d201bc4b8c6af4ee3365aa69.tar.gz tinygo-63aaa43072504ac3d201bc4b8c6af4ee3365aa69.zip |
testing: add test.skip
Fixes #3056
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -236,6 +236,9 @@ func Test(pkgName string, stdout, stderr io.Writer, options *compileopts.Options if testConfig.RunRegexp != "" { flags = append(flags, "-test.run="+testConfig.RunRegexp) } + if testConfig.SkipRegexp != "" { + flags = append(flags, "-test.skip="+testConfig.SkipRegexp) + } if testConfig.BenchRegexp != "" { flags = append(flags, "-test.bench="+testConfig.BenchRegexp) } @@ -1434,6 +1437,7 @@ func main() { flag.BoolVar(&testConfig.Verbose, "v", false, "verbose: print additional output") flag.BoolVar(&testConfig.Short, "short", false, "short: run smaller test suite to save time") flag.StringVar(&testConfig.RunRegexp, "run", "", "run: regexp of tests to run") + flag.StringVar(&testConfig.SkipRegexp, "skip", "", "run: regexp of tests to run") testConfig.Count = flag.Int("count", 1, "count: number of times to run tests/benchmarks `count` times") flag.StringVar(&testConfig.BenchRegexp, "bench", "", "run: regexp of benchmarks to run") flag.StringVar(&testConfig.BenchTime, "benchtime", "", "run each benchmark for duration `d`") |