scruplelesswizard / split-tests

Github Action for splitting a test suite for parallelization with equal time
GNU Affero General Public License v3.0
26 stars 14 forks source link

Exclude glob not working #8

Open mavendonovanhubbard opened 1 year ago

mavendonovanhubbard commented 1 year ago

I'm trying to test everything under spec/**/*_spec.rb while excluding tests under `spec/selenium/*_spec.rb. I've tried various different exclude glob patterns but none of them seem to be working. The files I want excluded are always included.

Here is my action

- uses: chaosaffe/split-tests@4f1ca766cb93923ca216e02f1aefed20944e313f
  id: split-tests
  name: Split tests
  with:
    glob: spec/**/*_spec.rb
    split-total: ${{ env.rspec-runners }}
    split-index: ${{ matrix.rspec_index }}
    exclude-glob: spec/selenium/**/*_spec.rb
    line-count: true

Some of the other patterns I've tried.

skolsuper commented 1 month ago

Same here. I downloaded the split_tests binary from the latest Github release, the same way the script does, and verified that it worked as expected. However, I could only test the split_tests.darwin.gz (macOS) release so there may be some issue with the linux binary, although it seems unlikely. The fix in #9 (removing single quotes) was not necessary to make the command work correctly. I am at a loss.