question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[test-runner] allow excluding test files

See original GitHub issue

Negations in globs is a pretty hard syntax. We should support include/exclude patterns:

export default {
  files: {
    include: 'test/**/*.test.js',
    exclude: 'test/**/*.bar.test.js'
  }
}

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:7
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

5reactions
benjamindcommented, Apr 14, 2021

You can use glob negations, but the way we’re currently processing the glob strings means the negations are ineffective.

We could really use this capability to help separate our integration / unit tests.

1reaction
jordanaustincommented, Apr 14, 2021

Yeah, we’re having the same problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to exclude certain tests in the Visual Studio Test Runner?
Most of my tests are normal unit tests and I do want them to run on every build. So: how can I exclude...
Read more >
TestRunner | ReadyAPI Documentation - SmartBear Support
The test runner allows you to run functional tests and export results. You can start the runner from the command line or from...
Read more >
Test Runner: CLI and Configuration - Modern Web
Excluding files. Use a negated glob pattern to exclude test files export default { files: [ ...
Read more >
Maven Surefire Plugin – Inclusions and Exclusions of Tests
There are certain times when some tests are causing the build to fail. Excluding them is one of the best workarounds to continue...
Read more >
3. The Command-Line Test Runner — PHPUnit 9.5 Manual
Let's take a look at the command-line test runner's options in the following ... Ignore code coverage configuration Logging Options: --log-junit <file> Log ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found