From 56fde66cfee22ad41877bd323d37f706982cab73 Mon Sep 17 00:00:00 2001 From: Harry Solovay Date: Wed, 3 May 2023 16:47:12 -0400 Subject: [PATCH] feat: `no-skip` flag (#12) --- test.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test.ts b/test.ts index 73d0c94..ae1580a 100644 --- a/test.ts +++ b/test.ts @@ -8,13 +8,14 @@ import * as path from "./deps/std/path.ts" import { readerFromStreamReader, writeAll } from "./deps/std/streams.ts" import { parseFrontmatter } from "./frontmatter.ts" -const { _: includePatterns, reload, ...rest } = parseFlags(Deno.args, { +const { _: includePatterns, reload, "no-skip": noSkip, ...rest } = parseFlags(Deno.args, { alias: { b: "browser", c: "concurrency", p: "project", r: "reload", }, + boolean: ["no-skip"], string: ["browser", "concurrency", "project", "reload"], default: { concurrency: Infinity, @@ -66,8 +67,8 @@ await runWithConcurrency( }, }) const quotedPathname = `"${pathname}"` - if (frontmatter.test_skip) { - console.log(yellow("Skipping"), quotedPathname) + if (!noSkip && frontmatter.test_skip) { + console.log(yellow("Skipped"), quotedPathname) skipped++ return }