<p dir="auto"><code class="notranslate">deno test</code> should support <code class="notranslate">--ignore</code> just like <code class="notranslate">deno fmt</code> and <code class="notranslate">deno lint</code></p>
<p dir="auto">Allow an <code class="notranslate">--ignore</code> flag to exclude files. The only good and common way of defining excludes are globs, so I'm including glob support in this issue. Existing tools have this.</p>
<p dir="auto">Allow the following usages:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="deno fmt --ignore=&lt;csv-globs&gt; &lt;globs&gt;...
deno lint --ignore=&lt;csv-globs&gt; &lt;globs&gt;...
deno test --ignore-files=&lt;csv-globs&gt; &lt;globs&gt;..."><pre class="notranslate"><code class="notranslate">deno fmt --ignore=&lt;csv-globs&gt; &lt;globs&gt;...
deno lint --ignore=&lt;csv-globs&gt; &lt;globs&gt;...
deno test --ignore-files=&lt;csv-globs&gt; &lt;globs&gt;...
</code></pre></div>
<p dir="auto">Glob support was removed when we brought <code class="notranslate">deno test</code> and <code class="notranslate">deno fmt</code> into the CLI from <code class="notranslate">std</code> because:</p>
<ol dir="auto">
<li>The shell can expand globs for you. However, this doesn't work when spawning with process APIs, or with exclude patterns (or generally things that are meaningless to expand in the shell). You ultimately have to use platform-specific tools like <code class="notranslate">find</code>. It's not ideal.</li>
<li>There are no good glob expansion/matching tools in Rust. The ones considered were buggy on Windows and didn't have feature parity with the glob tools we have in <code class="notranslate">std</code>. This is still a blocker.</li>
</ol>
<p dir="auto">Ref <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="557102651" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/3820" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/3820/hovercard" href="https://github.com/denoland/deno/pull/3820">#3820</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="558958219" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/3865" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/3865/hovercard" href="https://github.com/denoland/deno/pull/3865">#3865</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="558958219" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/3865" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/3865/hovercard?comment_id=582467055&amp;comment_type=issue_comment" href="https://github.com/denoland/deno/pull/3865#issuecomment-582467055">#3865 (comment)</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="558958219" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/3865" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/3865/hovercard?comment_id=584576969&amp;comment_type=issue_comment" href="https://github.com/denoland/deno/pull/3865#issuecomment-584576969">#3865 (comment)</a>.</p>