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 }