title: Run `cargo test --workspace` and exclude one test
body: <p>I have a workspace with several crates.  I need to exclude a particular test.</p>
  <p>I tried adding an environment variable check, but this doesn't work.  I guess <code>cargo test</code> filters out the environment variables.</p>
  <pre class="lang-rust prettyprint-override"><code>// package1/src/lib.rs
  
  // ...
  
  #[cfg(test)]
  mod tests {
  
      #[test]
      fn test1() {
          if std::env::var(&quot;CI&quot;).is_ok() {
              return;
          }
          // ...
      }
  }
  </code></pre>
  <p>Then I tried passing the <a href="https://doc.rust-lang.org/cargo/commands/cargo-test.html#package-selection" rel="nofollow noreferrer"><code>--exclude</code></a> parameter with various options, but none of them work:</p>
  <ul>
  <li><code>cargo test --workspace --exclude test1</code></li>
  <li><code>cargo test --workspace --exclude tests:test1</code></li>
  <li><code>cargo test --workspace --exclude tests::test1</code></li>
  <li><code>cargo test --workspace --exclude '*test1'</code></li>
  <li><code>cargo test --workspace --exclude 'tests*test1'</code></li>
  <li><code>cargo test --workspace --exclude package1</code>
  This skips all of the tests in the package.</li>
  <li><code>cargo test --workspace --exclude 'package1*test1'</code></li>
  </ul>
  <p>How can I run all workspace tests except one?</p>