Globbing tests does not include subfolders

2.0

#1

Hello,

We noticed today during our upgrade from 1.0 to 2.0 that globbing tests does not include tests that are in subfolders.

Running the following in CircleCI gives the following count of our files.

circleci tests glob test/**/*.rb | circleci tests split --show-counts

Read 354 filename(s)
Current container # 0. Assigning 89 filename(s) on this container
test/subfolder/test1.rb
test/subfolder/test2.rb
...

Adding a /**/ to the path above changes the results and the output for the files.

circleci tests glob test/**/**/*.rb | circleci tests split --show-counts

Read 307 filename(s)
Current container # 0. Assigning 77 filename(s) on this container
test/subfolder/subfolder2/test1.rb
test/subfolder/subfolder2/test2.rb

We are trying to recursively run all of our tests and we have a lot of tests that are deeply nested. Is there any other way to do this?


#2

We are also running into this issue after migrating to 2.0. Seems like an obvious issue, any suggestions?


#3

Interesting. Does circleci tests have a syntax where you can supply the list piped in, or in a file? (This does sound like an unintended change, just wondering how to get you running again in the short term).