Skip to content

test_runner: support glob inclusions and exclusions

Rodrigo Muino Tomonari requested to merge github/fork/RedYetiDev/test-exclude into main

This PR adds the functionality to exclude test files by glob patterns.

It is meant for the use case when a user may have hundreds of test files and may only want to run a few (via glob).

Added test results:

▶ --test-runner-include
  ✔ No globs (86.421831ms)
  ✔ *.test.js (82.534169ms)
  ✔ nonexistent.js (44.967071ms)
▶ --test-runner-include (215.595732ms)
▶ --test-runner-exclude
  ✔ No globs (86.749583ms)
  ✔ o*.test.js, i*.test.js (87.369228ms)
  ✔ ** (48.384698ms)
▶ --test-runner-exclude (223.456528ms)
ℹ tests 8
ℹ suites 0
ℹ pass 8
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 442.787698

Merge request reports

Loading