Anyone know how to run tests except some folder in parallel


#1

Right now we are using below syntax and it is working fine. But the thing is that I want to execute tests except some ‘features’ folder present inside ‘spec’ folder. (Similar to exclude pattern in rspec). How to make it work circleciv2? ‘circleci glob’ is not supporting exclude pattern

  • run:
    name: Run Tests
    command: |
    bundle exec rspec
    –profile 10
    –format RspecJunitFormatter
    –out test_results/rspec.xml
    –format progress
    $(circleci tests glob “spec/**/*_spec.rb” | circleci tests split --split-by=timings)

#2

(Aside: if you can format your config files with Markdown code formatting, they are much easier to read. See below. There’s a button in editor toolbar. If you can edit your post, I’ll delete this to tidy up).

code/config
  goes
    here

#3

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.